Desktop User Guides > Professional > Table scripting > Table specification syntax > Base element > The unweighted base in weighted tables
The unweighted base in weighted tables
When working with weighted data, it is good practice to show the unweighted base values in your tables in addition to the weighted base values. This is particularly important when showing percentages. To facilitate this, by default, UNICOM Intelligence Professional automatically adds an unweighted base element at the start of each axis in a weighted table. For an example of a weighted table containing unweighted base elements, see Weighting tables.
The unweighted base element shows the total number of cases in the variable before any weighting has been applied. Only one value is ever shown in the table cells formed from the unweighted base element, even when there are multiple cell contents. The value that is shown is the unweighted base count, regardless of what cell contents have been requested for the table.
You can stop the automatic insertion of the unweighted base elements by setting the AutoUnweightedBases table property (see Table properties) to False. However, you would then need to insert unweighted base elements into your axes manually, when necessary, to comply with good practice guidelines. The following examples shows how to set the property:
MyTable.Properties["AutoUnweightedBases"] = False
The unweighted base element is added when you add the weighting to the table, so you need to set the property before you weight the table.
See also
Base element