# NxInlineMeasureDef

## Properties

| Name | Description | Type |
| --- | --- | --- |
| qLabel | Name of the measure.<br>An empty string is returned as a default value.<br>This parameter is optional. | String |
| qDescription | Description of the measure.<br>An empty string is returned as a default value.<br>This parameter is optional. | String |
| qTags | Name connected to the measure that is used for search purposes.<br>A measure can have several tags.<br>This parameter is optional. | Array of String |
| qGrouping | Default value is no grouping.<br>This parameter is optional.<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 |
| qDef | Definition of the expression in the measure.<br>Example: *Sum (OrderTotal)*<br>This parameter is mandatory. | String |
| 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/May2026/Subsystems/EngineJSONAPI/Content/models-fieldattributes.htm) |
| qRelative | If set to true, percentage values are returned instead of absolute numbers.<br>Default value is false.<br>This parameter is optional. | Boolean |
| qBrutalSum | If set to true, the sum of rows total should be used rather than real expression total.<br>This parameter is optional and applies to straight tables.<br>Default value is false.<br>If using the Qlik Sense interface, it means that the total mode is set to **Expression Total** . | Boolean |
| qAggrFunc | Flag indicating how the measure should be aggregated to create a grand total.<br>"None" - No total calculation.<br>"Expr" - Calculate total according to the measure expression.<br>"" - Empty string is default and has same effect as "Expr".<br>This parameter is optional. | String |
| qAccumulate | <ul><li>0 means no accumulation* 1 means full accumulation (each y-value accumulates all previous y-values of the expression)* ≥ 2 means accumulate as many steps as the <em>qAccumulate</em> valueDefault value is 0.This parameter is optional.</li></ul> | Integer |
| qReverseSort | If set to true, it inverts the sort criteria in the field. | Boolean |
| qActiveExpression | Index of the active expression in a cyclic measure. The indexing starts from 0.<br>The default value is 0.<br>This parameter is optional. | Integer |
| qExpressions | Array of expressions. This parameter is used in case of cyclic measures ( *qGrouping* is C). List of the expressions in the cyclic group. | Array of String |
| qLabelExpression | Label expression.<br>This parameter is optional. | String |