2.2.5.4 Column Object
The Column object represents a column in a Table. It is a child of a Table object. Each column has a number of properties defined on it that influence how client applications visualize the data in the column.
The Column object has the following properties.
Name |
Type |
Description |
---|---|---|
ID |
unsignedLong |
A reference to the object. |
TableID |
unsignedLong |
An ID-based reference to a Table object. |
ExplicitName |
string |
The user-specified name for the column. This element MUST be specified for calculated columns and columns that are bound to data. If a column in a calculated table leaves this unspecified, the name is inferred from the expression. |
InferredName |
string |
Specifies the engine-generated name for the column. It is valid only for columns of type CalculatedTableColumn. |
ExplicitDataType |
enumeration |
The user-specified data type to be enforced on the contents of the column. The possible values are as follows:
|
InferredDataType |
enumeration |
Specifies the engine-generated data type for this column. It is valid only for columns of the type CalculatedTableColumn or Calculated. |
DataCategory |
string |
The values in the following enumeration PropertyType are automatically mapped to the LEVEL_TYPE column that is defined in [MS-SSAS] section 3.1.4.2.2.1.3.8.1. All other strings map to ExtendedType (248) and are returned as-is in the Contents property of conceptual schema definition language (CSDL) for the column:
|
Description |
string |
The description of the object. |
IsHidden |
boolean |
A Boolean that indicates whether a column is treated as hidden by client visualization tools. If the column is treated as hidden by client visualization tools, it is "true"; otherwise, it is "false". |
State |
enumeration |
A value that provides information about the state of the column. The possible values and their interpretation are as follows:
|
IsUnique |
boolean |
A Boolean that indicates whether the column can contain duplicate values. If it is "true", the engine validates that this column cannot contain duplicate values; otherwise, it is "false". |
IsKey |
boolean |
A Boolean that indicates whether the column is a key of the table. If it is "true", the column is a key of the table; otherwise, it is "false". |
IsNullable |
boolean |
A Boolean that indicates whether null values are allowed in the column. If it is "true", null values are allowed in the column; otherwise, it is "false". |
Alignment |
enumeration |
Specifies the text alignment of the column in report visualizations. It is returned as part of CSDL. The possible values are as follows:
|
TableDetailPosition |
int |
Provides the ability to place this column in the DefaultDetails collection of the Table. This collection is an ordered set of Column types. A positive value indicates participation in the collection. The collection is sorted in ascending order of this element. The DefaultDetails collection is returned as part of the CSDL metadata returned by the DISCOVER_CSDL_METADATA operation (see [MS-SSAS] section 3.1.4.2.2.1.3.61).<35> |
IsDefaultLabel |
boolean |
A Boolean that indicates whether this column is included in the DisplayKey element in CSDL. |
IsDefaultImage |
boolean |
A Boolean that indicates whether this column is returned as the DefaultImage property in CSDL. |
SummarizeBy |
enumeration |
A value that indicates the default function, if any, used to aggregate this field. The possible values are as follows:
If this value is omitted, "Default" is assumed for numeric fields and "None" is assumed for all other fields. |
ColumnStorageID |
unsignedLong |
An ID-based reference to a ColumnStorage object. The ColumnStorage object is reserved for internal use only. |
Type |
enumeration |
The type of Column. The possible values are as follows:
|
SourceColumn |
string |
The name of the column from which data is retrieved. The name MUST match a column returned by the execution of the partition's QueryDefinition against the data source. |
ColumnOriginID |
unsignedLong |
An ID-based reference to a ColumnOrigin object. |
Expression |
string |
The DAX expression that is evaluated for the calculated column. |
FormatString |
string |
A string that specifies the format of the column contents. For a description of the FormatString content, see [MSDN-FSCMDX]. |
IsAvailableInMDX |
boolean |
A Boolean that indicates whether the column can be excluded from usage in Multidimensional Expressions (MDX) query tools. If it is "false", the column can be excluded from usage in MDX query tools; otherwise, it is "true". |
SortByColumnID |
unsignedLong |
Indicates that the column defining this property is to be sorted by the values of the column referenced by this property. |
AttributeHierarchyID |
unsignedLong |
An ID-based reference to an AttributeHierarchy object. |
ModifiedTime |
dateTime |
The time that the object was last modified. |
StructureModifiedTime |
dateTime |
The time that the structure of the object was last modified. |
RefreshedTime |
dateTime |
The time that the object was last refreshed. |
SystemFlags |
long |
A bitmask that is used to identify the type of object. The possible values are as follows:
|
KeepUniqueRows |
boolean |
A Boolean that indicates the grouping of rows. If "false", client applications can group by this column. If "true", client applications are encouraged to group by a more unique key for the column. For an example, see [MS-CSDLBI] section 2.1.22.3. These semantics correspond to the following behavior:
|
DisplayOrdinal |
int |
Indicates the visual position of the column, defined as a relative ordering rather than a strict ordering (example: 10, 20, 40, 50). It allows client applications to maintain a consistent column position. The DisplayOrdinal property is reserved for future use. |
ErrorMessage |
string |
A string that explains the error state associated with the current object. It is set by the engine only when the state of the object is one of these three values: SemanticError, DependencyError, or EvaluationError. It is applicable only to columns of the type Calculated or CalculatedTableColumn. It is empty for other column objects. |
SourceProviderType |
string |
The original data type of the column as defined in the language of the data source. This data type is used to generate queries directly against the data source, for example in Direct Query mode. |
DisplayFolder |
string |
Defines the display folder in which the column is displayed by the client applications. |
EncodingHint<36> |
enumeration |
The encoding mechanism that is used for the column. The possible values are as follows:
Compatibility level 1400 or higher is required. |
LineageTag<37> |
string |
An optional tag that can be used to define the lineage of a column across different versions of a model. Compatibility level 1600 or higher is required. |
SourceLineageTag<38> |
string |
An optional tag that can be used to define the lineage of a referenced column across different versions of a model. As opposed to LineageTag, SourceLineageTag can be used to define the lineage of a referenced column rather than a column itself. SourceLineageTag is useful when a model references other models by using a Direct Query connection. Compatibility level 1600 or higher is required. |