# NxDimensionInfo

## Properties

| Name | Description | Type |
| --- | --- | --- |
| qFallbackTitle | Corresponds to the label of the dimension that is selected.<br>If the label is not defined then the field name is used. | String |
| qApprMaxGlyphCount | Length of the longest value in the field. | Integer |
| qCardinal | Number of distinct field values.<br><br>Information note<br>**DEPRECATED.**<br><br>This is deprecated and may be removed in a future version. | Integer |
| qLocked | Is set to true if the field is locked. | Boolean |
| qSortIndicator | Sort indicator.<br>The default value is no sorting.<br>This parameter is optional.<br><br>One of:<br><br><ul><li>N or NX_SORT_INDICATE_NONE</li><li>A or NX_SORT_INDICATE_ASC</li><li>D or NX_SORT_INDICATE_DESC</li></ul> | String |
| qGroupFallbackTitles | Array of dimension labels.<br>Contains the labels of all dimensions in a hierarchy group (for example the labels of all dimensions in a drill down group). | Array of String |
| qGroupPos | Index of the dimension that is currently in use.<br>*qGroupPos* is set to 0 if there are no hierarchical groups (drill-down groups) or cycle groups. | Integer |
| qStateCounts |  | [NxStateCounts](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/EngineJSONAPI/Content/models-nxstatecounts.htm) |
| qTags | Gives information on a field. For example, it can return the type of the field.<br>Examples: key, text, ASCII | Array of String |
| qError |  | [NxValidationError](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/EngineJSONAPI/Content/models-nxvalidationerror.htm) |
| qDimensionType | Binary format of the field.<br><br>One of:<br><br><ul><li>D or NX_DIMENSION_TYPE_DISCRETE</li><li>N or NX_DIMENSION_TYPE_NUMERIC</li><li>T or NX_DIMENSION_TYPE_TIME</li></ul> | String |
| qReverseSort | If set to true, it inverts the sort criteria in the field. | Boolean |
| qGrouping | Defines the grouping.<br><br>One of:<br><br><ul><li>N or GRP_NX_NONE</li><li>H or GRP_NX_HIEARCHY</li><li>C or GRP_NX_COLLECTION</li></ul> | String |
| qIsSemantic | If set to true, it means that the field is a semantic. | Boolean |
| qNumFormat | Sets the formatting of a field.<br>The properties of *qFieldAttributes* and the formatting mechanism are described below.<br><br>Formatting mechanism<br><br>The formatting mechanism depends on the type set in *qType,* as shown below:<br><br>Information note<br><br>In case of inconsistencies between the type and the format pattern, the format pattern takes precedence over the type.<br><br>Type is DATE, TIME, TIMESTAMP or INTERVAL<br><br>The following applies:<br><br><ul><li>If a format pattern is defined in <em>qFmt</em> , the formatting is as defined in <em>qFmt</em> .</li><li>If <em>qFmt</em> is empty, the formatting is defined by the number interpretation variables included at the top of the script ( <em>TimeFormat</em> , <em>DateFormat</em> , <em>TimeStampFormat</em> ).</li><li>The properties <em>qDec</em> , <em>qThou</em> , <em>qnDec</em> , <em>qUseThou</em> are not used.</li></ul><br><br>Type is INTEGER<br><br>The following applies:<br><br><ul><li>If a format pattern is defined in <em>qFmt</em> , the engine looks at the values set in <em>qDec</em> and <em>qThou</em> . If these properties are not defined, the formatting mechanism uses the number interpretation variables included at the top of the script ( <em>DecimalSep</em> and <em>ThousandSep</em> ).</li><li>If no format pattern is defined in <em>qFmt</em> , no formatting is applied. The properties <em>qDec</em> , <em>qThou</em> , <em>qnDec</em> , <em>qUseThou</em> and the number interpretation variables defined in the script are not used .</li></ul><br><br>Type is REAL<br><br>The following applies:<br><br><ul><li>If a format pattern is defined in <em>qFmt</em> , the engine looks at the values set in <em>qDec</em> and <em>qThou</em> . If these properties are not defined, the engine uses the number interpretation variables included at the top of the script ( <em>DecimalSep</em> and <em>ThousandSep</em> ).</li><li>If no format pattern is defined in <em>qFmt</em> , and if the value is almost an integer value (for example, 14,000012), the value is formatted as an integer. The properties <em>qDec</em> , <em>qThou</em> , <em>qnDec</em> , <em>qUseThou</em> are not used.</li><li>If no format pattern is defined in <em>qFmt</em> , and if <em>qnDec</em> is defined and not 0, the property <em>qDec</em> is used. If <em>qDec</em> is not defined, the variable <em>DecimalSep</em> defined at the top of the script is used.</li><li>If no format pattern is defined in <em>qFmt</em> , and if <em>qnDec</em> is 0, the number of decimals is 14 and the property <em>qDec</em> is used. If <em>qDec</em> is not defined, the variable <em>DecimalSep</em> defined at the top of the script is used.</li></ul><br><br>Type is FIX<br><br>The following applies:<br><br><ul><li>If a format pattern is defined in <em>qFmt</em> , the engine looks at the values set in <em>qDec</em> and <em>qThou</em> . If these properties are not defined, the engine uses the number interpretation variables included at the top of the script ( <em>DecimalSep</em> and <em>ThousandSep</em> ).</li><li>If no format pattern is defined in <em>qFmt</em> , the properties <em>qDec</em> and <em>qnDec</em> are used. If <em>qDec</em> is not defined, the variable <em>DecimalSep</em> defined at the top of the script is used.</li></ul><br><br>Type is MONEY<br><br>The following applies:<br><br><ul><li>If a format pattern is defined in <em>qFmt</em> , the engine looks at the values set in <em>qDec</em> and <em>qThou</em> . If these properties are not defined, the engine uses the number interpretation variables included at the top of any script ( <em>MoneyDecimalSep</em> and <em>MoneyThousandSep</em> ).</li><li>If no format pattern is defined in <em>qFmt</em> , the engine uses the number interpretation variables included at the top of the script ( <em>MoneyDecimalSep</em> and <em>MoneyThousandSep</em> ).</li></ul><br><br>Type is ASCII<br><br>No formatting, *qFmt* is ignored. | [FieldAttributes](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/EngineJSONAPI/Content/models-fieldattributes.htm) |
| qIsAutoFormat | This parameter is set to true if *qNumFormat* is set to *U* (unknown). The engine guesses the type of the field based on the field's definition. | Boolean |
| qGroupFieldDefs | Array of field names. | Array of String |
| qMin | Minimum value. | Number (double) |
| qMax | Maximum value. | Number (double) |
| qContinuousAxes | Is continuous axis used. | Boolean |
| qIsCyclic | Is a cyclic dimension used. | Boolean |
| qDerivedField | Is derived field is used as a dimension. | Boolean |
| qAttrExprInfo | Array of attribute expressions. | Array of [NxAttrExprInfo](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/EngineJSONAPI/Content/models-nxattrexprinfo.htm) |
| qAttrDimInfo | Array of attribute dimensions. | Array of [NxAttrDimInfo](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/EngineJSONAPI/Content/models-nxattrdiminfo.htm) |
| qCalcCondMsg | The message displayed if calculation condition is not fulfilled. | String |
| qIsCalculated | True if this is a calculated dimension. | Boolean |
| qIsOneAndOnlyOne | If set to true, it means that the field always has one and only one selected value. | Boolean |
| qCardinalities |  | [NxCardinalities](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/EngineJSONAPI/Content/models-nxcardinalities.htm) |
| qLibraryId | Refers to a dimension stored in the library. | String |
| qEffectiveDimensionName | The expanded and stripped dimension name used internally in engine. | String |