<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Null row appearing when dimension attribute is defined in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Null-row-appearing-when-dimension-attribute-is-defined/m-p/2433137#M96786</link>
    <description>&lt;P&gt;Here are the properties of the table object, qSuppressZero is true (set by disabling "Include zero values" in Data Handling), the null row is visible.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "qInfo": {
    "qId": "WGSKDWP",
    "qType": "table"
  },
  "qExtendsId": "",
  "qMetaDef": {},
  "qStateName": "",
  "qHyperCubeDef": {
    "qStateName": "",
    "qDimensions": [
      {
        "qLibraryId": "",
        "qDef": {
          "qGrouping": "N",
          "qFieldDefs": [
            "emptyDimension"
          ],
          "qFieldLabels": [
            ""
          ],
          "qSortCriterias": [
            {
              "qSortByState": 0,
              "qSortByFrequency": 0,
              "qSortByNumeric": 1,
              "qSortByAscii": 1,
              "qSortByLoadOrder": 1,
              "qSortByExpression": 0,
              "qExpression": {
                "qv": ""
              },
              "qSortByGreyness": 0
            }
          ],
          "qNumberPresentations": [],
          "qReverseSort": false,
          "qActiveField": 0,
          "qLabelExpression": "",
          "autoSort": true,
          "cId": "RkuD",
          "othersLabel": "Others",
          "textAlign": {
            "auto": true,
            "align": "left"
          },
          "representation": {
            "type": "text",
            "urlPosition": "dimension",
            "urlLabel": "",
            "linkUrl": "",
            "imageSetting": "label",
            "imageLabel": "",
            "imageUrl": "",
            "imageSize": "fitHeight",
            "imagePosition": "topCenter"
          }
        },
        "qNullSuppression": true,
        "qIncludeElemValue": false,
        "qOtherTotalSpec": {
          "qOtherMode": "OTHER_OFF",
          "qOtherCounted": {
            "qv": "10"
          },
          "qOtherLimit": {
            "qv": "0"
          },
          "qOtherLimitMode": "OTHER_GE_LIMIT",
          "qSuppressOther": false,
          "qForceBadValueKeeping": true,
          "qApplyEvenWhenPossiblyWrongResult": true,
          "qGlobalOtherGrouping": false,
          "qOtherCollapseInnerDimensions": false,
          "qOtherSortMode": "OTHER_SORT_DESCENDING",
          "qTotalMode": "TOTAL_OFF",
          "qReferencedExpression": {
            "qv": ""
          }
        },
        "qShowTotal": false,
        "qShowAll": false,
        "qOtherLabel": {
          "qv": "Others"
        },
        "qTotalLabel": {
          "qv": ""
        },
        "qCalcCond": {
          "qv": ""
        },
        "qAttributeExpressions": [
          {
            "qExpression": "='red'",
            "qLibraryId": "",
            "qAttribute": true,
            "qNumFormat": null,
            "qLabel": "",
            "qLabelExpression": "",
            "id": "cellBackgroundColor"
          }
        ],
        "qAttributeDimensions": [],
        "qCalcCondition": {
          "qCond": {
            "qv": ""
          },
          "qMsg": {
            "qv": ""
          }
        }
      }
    ],
    "qMeasures": [],
    "qInterColumnSortOrder": [
      0
    ],
    "qSuppressZero": true,
    "qSuppressMissing": true,
    "qInitialDataFetch": [],
    "qReductionMode": "N",
    "qMode": "S",
    "qPseudoDimPos": -1,
    "qNoOfLeftDims": -1,
    "qAlwaysFullyExpanded": false,
    "qMaxStackedCells": 5000,
    "qPopulateMissing": false,
    "qShowTotalsAbove": false,
    "qIndentMode": false,
    "qCalcCond": {
      "qv": ""
    },
    "qSortbyYValue": 0,
    "qTitle": {
      "qv": ""
    },
    "qCalcCondition": {
      "qCond": {
        "qv": ""
      },
      "qMsg": {
        "qv": ""
      }
    },
    "qColumnOrder": [
      0
    ],
    "qExpansionState": [],
    "qDynamicScript": [],
    "qContextSetExpression": "",
    "columnOrder": [
      0
    ],
    "columnWidths": [
      -1
    ],
    "qLayoutExclude": {
      "qHyperCubeDef": {
        "qStateName": "",
        "qDimensions": [],
        "qMeasures": [],
        "qInterColumnSortOrder": [],
        "qSuppressZero": false,
        "qSuppressMissing": false,
        "qInitialDataFetch": [],
        "qReductionMode": "N",
        "qMode": "S",
        "qPseudoDimPos": -1,
        "qNoOfLeftDims": -1,
        "qAlwaysFullyExpanded": false,
        "qMaxStackedCells": 5000,
        "qPopulateMissing": false,
        "qShowTotalsAbove": false,
        "qIndentMode": false,
        "qCalcCond": {
          "qv": ""
        },
        "qSortbyYValue": 0,
        "qTitle": {
          "qv": ""
        },
        "qCalcCondition": {
          "qCond": {
            "qv": ""
          },
          "qMsg": {
            "qv": ""
          }
        },
        "qColumnOrder": [],
        "qExpansionState": [],
        "qDynamicScript": [],
        "qContextSetExpression": ""
      }
    }
  },
  "script": "",
  "search": {
    "sorting": "auto"
  },
  "showTitles": true,
  "title": "",
  "subtitle": "",
  "footnote": "",
  "disableNavMenu": false,
  "showDetails": false,
  "showDetailsExpression": false,
  "totals": {
    "show": true,
    "position": "noTotals",
    "label": "Totals"
  },
  "scrolling": {
    "horizontal": true,
    "keepFirstColumnInView": false,
    "keepFirstColumnInViewTouch": false
  },
  "multiline": {
    "wrapTextInHeaders": true,
    "wrapTextInCells": true
  },
  "visualization": "table"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The layout says the dimension has 0 values, but the hypercube has size of 1x1&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "qInfo": {
    "qId": "WGSKDWP",
    "qType": "table"
  },
  "qMeta": {
    "privileges": [
      "read",
      "update",
      "delete",
      "exportdata"
    ]
  },
  "qSelectionInfo": {},
  "qHyperCube": {
    "qSize": {
      "qcx": 1,
      "qcy": 1
    },
    "qDimensionInfo": [
      {
        "qFallbackTitle": "emptyDimension",
        "qApprMaxGlyphCount": 1,
        "qCardinal": 0,
        "qSortIndicator": "A",
        "qGroupFallbackTitles": [
          "emptyDimension"
        ],
        "qGroupPos": 0,
        "qStateCounts": {
          "qLocked": 0,
          "qSelected": 0,
          "qOption": 0,
          "qDeselected": 0,
          "qAlternative": 0,
          "qExcluded": 0,
          "qSelectedExcluded": 0,
          "qLockedExcluded": 0
        },
        "qTags": [],
        "qDimensionType": "D",
        "qGrouping": "N",
        "qNumFormat": {
          "qType": "U",
          "qnDec": 0,
          "qUseThou": 0
        },
        "qIsAutoFormat": true,
        "qGroupFieldDefs": [
          "emptyDimension"
        ],
        "qMin": "NaN",
        "qMax": "NaN",
        "qAttrExprInfo": [
          {
            "qMin": "NaN",
            "qMax": "NaN",
            "qFallbackTitle": "='red'",
            "qNumFormat": {
              "qType": "U",
              "qnDec": 0,
              "qUseThou": 0
            },
            "qIsAutoFormat": true,
            "id": "cellBackgroundColor"
          }
        ],
        "qAttrDimInfo": [],
        "qCardinalities": {
          "qCardinal": 0,
          "qHypercubeCardinal": 1,
          "qAllValuesCardinal": -1
        },
        "autoSort": true,
        "cId": "RkuD",
        "othersLabel": "Others",
        "textAlign": {
          "auto": true,
          "align": "left"
        },
        "representation": {
          "type": "text",
          "urlPosition": "dimension",
          "urlLabel": "",
          "linkUrl": "",
          "imageSetting": "label",
          "imageLabel": "",
          "imageUrl": "",
          "imageSize": "fitHeight",
          "imagePosition": "topCenter"
        }
      }
    ],
    "qMeasureInfo": [],
    "qEffectiveInterColumnSortOrder": [
      0
    ],
    "qGrandTotalRow": [],
    "qDataPages": [],
    "qPivotDataPages": [],
    "qStackedDataPages": [],
    "qMode": "S",
    "qNoOfLeftDims": -1,
    "qTreeNodesOnDim": [],
    "qColumnOrder": [
      0
    ],
    "columnOrder": [
      0
    ],
    "columnWidths": [
      -1
    ]
  },
  "script": "",
  "search": {
    "sorting": "auto"
  },
  "showTitles": true,
  "title": "",
  "subtitle": "",
  "footnote": "",
  "disableNavMenu": false,
  "showDetails": false,
  "showDetailsExpression": false,
  "totals": {
    "show": true,
    "position": "noTotals",
    "label": "Totals"
  },
  "scrolling": {
    "horizontal": true,
    "keepFirstColumnInView": false,
    "keepFirstColumnInViewTouch": false
  },
  "multiline": {
    "wrapTextInHeaders": true,
    "wrapTextInCells": true
  },
  "visualization": "table"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 07:06:12 GMT</pubDate>
    <dc:creator>tomas_janco</dc:creator>
    <dc:date>2024-03-21T07:06:12Z</dc:date>
    <item>
      <title>Null row appearing when dimension attribute is defined</title>
      <link>https://community.qlik.com/t5/App-Development/Null-row-appearing-when-dimension-attribute-is-defined/m-p/2433019#M96774</link>
      <description>&lt;P&gt;When a dimension has no value (or no value is associated to current selections), a hypercube contains no rows.&lt;/P&gt;
&lt;P&gt;However, when a dimension attribute is defined, the hypercube contains one row with NULL value.&lt;/P&gt;
&lt;P&gt;No combination of qSuppressZero, qSuppressMissing, qNullSuppression or qAttribute values will remove that extra row.&lt;/P&gt;
&lt;P&gt;This can be demonstrated using following load script:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;emptyTable:
LOAD * INLINE [emptyDimension];&lt;/LI-CODE&gt;
&lt;P&gt;By creating a straight table visualization with the emptyDimension field used as dimension.&lt;/P&gt;
&lt;P&gt;Initially, the table is empty. If I add a Background color expression ='red' a NULL row appears in the table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomas_janco_0-1710956426488.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162414i3C3DC51D250F619E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomas_janco_0-1710956426488.png" alt="tomas_janco_0-1710956426488.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How to get rid of that null row?&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt; &lt;LI-PRODUCT title="Qlik Cloud" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 17:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-row-appearing-when-dimension-attribute-is-defined/m-p/2433019#M96774</guid>
      <dc:creator>tomas_janco</dc:creator>
      <dc:date>2024-03-20T17:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Null row appearing when dimension attribute is defined</title>
      <link>https://community.qlik.com/t5/App-Development/Null-row-appearing-when-dimension-attribute-is-defined/m-p/2433042#M96777</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/205397"&gt;@tomas_janco&lt;/a&gt;&amp;nbsp;yeah using 'qSuppressZero' should have done it, what does your code look like?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 19:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-row-appearing-when-dimension-attribute-is-defined/m-p/2433042#M96777</guid>
      <dc:creator>David_Friend</dc:creator>
      <dc:date>2024-03-20T19:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Null row appearing when dimension attribute is defined</title>
      <link>https://community.qlik.com/t5/App-Development/Null-row-appearing-when-dimension-attribute-is-defined/m-p/2433137#M96786</link>
      <description>&lt;P&gt;Here are the properties of the table object, qSuppressZero is true (set by disabling "Include zero values" in Data Handling), the null row is visible.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "qInfo": {
    "qId": "WGSKDWP",
    "qType": "table"
  },
  "qExtendsId": "",
  "qMetaDef": {},
  "qStateName": "",
  "qHyperCubeDef": {
    "qStateName": "",
    "qDimensions": [
      {
        "qLibraryId": "",
        "qDef": {
          "qGrouping": "N",
          "qFieldDefs": [
            "emptyDimension"
          ],
          "qFieldLabels": [
            ""
          ],
          "qSortCriterias": [
            {
              "qSortByState": 0,
              "qSortByFrequency": 0,
              "qSortByNumeric": 1,
              "qSortByAscii": 1,
              "qSortByLoadOrder": 1,
              "qSortByExpression": 0,
              "qExpression": {
                "qv": ""
              },
              "qSortByGreyness": 0
            }
          ],
          "qNumberPresentations": [],
          "qReverseSort": false,
          "qActiveField": 0,
          "qLabelExpression": "",
          "autoSort": true,
          "cId": "RkuD",
          "othersLabel": "Others",
          "textAlign": {
            "auto": true,
            "align": "left"
          },
          "representation": {
            "type": "text",
            "urlPosition": "dimension",
            "urlLabel": "",
            "linkUrl": "",
            "imageSetting": "label",
            "imageLabel": "",
            "imageUrl": "",
            "imageSize": "fitHeight",
            "imagePosition": "topCenter"
          }
        },
        "qNullSuppression": true,
        "qIncludeElemValue": false,
        "qOtherTotalSpec": {
          "qOtherMode": "OTHER_OFF",
          "qOtherCounted": {
            "qv": "10"
          },
          "qOtherLimit": {
            "qv": "0"
          },
          "qOtherLimitMode": "OTHER_GE_LIMIT",
          "qSuppressOther": false,
          "qForceBadValueKeeping": true,
          "qApplyEvenWhenPossiblyWrongResult": true,
          "qGlobalOtherGrouping": false,
          "qOtherCollapseInnerDimensions": false,
          "qOtherSortMode": "OTHER_SORT_DESCENDING",
          "qTotalMode": "TOTAL_OFF",
          "qReferencedExpression": {
            "qv": ""
          }
        },
        "qShowTotal": false,
        "qShowAll": false,
        "qOtherLabel": {
          "qv": "Others"
        },
        "qTotalLabel": {
          "qv": ""
        },
        "qCalcCond": {
          "qv": ""
        },
        "qAttributeExpressions": [
          {
            "qExpression": "='red'",
            "qLibraryId": "",
            "qAttribute": true,
            "qNumFormat": null,
            "qLabel": "",
            "qLabelExpression": "",
            "id": "cellBackgroundColor"
          }
        ],
        "qAttributeDimensions": [],
        "qCalcCondition": {
          "qCond": {
            "qv": ""
          },
          "qMsg": {
            "qv": ""
          }
        }
      }
    ],
    "qMeasures": [],
    "qInterColumnSortOrder": [
      0
    ],
    "qSuppressZero": true,
    "qSuppressMissing": true,
    "qInitialDataFetch": [],
    "qReductionMode": "N",
    "qMode": "S",
    "qPseudoDimPos": -1,
    "qNoOfLeftDims": -1,
    "qAlwaysFullyExpanded": false,
    "qMaxStackedCells": 5000,
    "qPopulateMissing": false,
    "qShowTotalsAbove": false,
    "qIndentMode": false,
    "qCalcCond": {
      "qv": ""
    },
    "qSortbyYValue": 0,
    "qTitle": {
      "qv": ""
    },
    "qCalcCondition": {
      "qCond": {
        "qv": ""
      },
      "qMsg": {
        "qv": ""
      }
    },
    "qColumnOrder": [
      0
    ],
    "qExpansionState": [],
    "qDynamicScript": [],
    "qContextSetExpression": "",
    "columnOrder": [
      0
    ],
    "columnWidths": [
      -1
    ],
    "qLayoutExclude": {
      "qHyperCubeDef": {
        "qStateName": "",
        "qDimensions": [],
        "qMeasures": [],
        "qInterColumnSortOrder": [],
        "qSuppressZero": false,
        "qSuppressMissing": false,
        "qInitialDataFetch": [],
        "qReductionMode": "N",
        "qMode": "S",
        "qPseudoDimPos": -1,
        "qNoOfLeftDims": -1,
        "qAlwaysFullyExpanded": false,
        "qMaxStackedCells": 5000,
        "qPopulateMissing": false,
        "qShowTotalsAbove": false,
        "qIndentMode": false,
        "qCalcCond": {
          "qv": ""
        },
        "qSortbyYValue": 0,
        "qTitle": {
          "qv": ""
        },
        "qCalcCondition": {
          "qCond": {
            "qv": ""
          },
          "qMsg": {
            "qv": ""
          }
        },
        "qColumnOrder": [],
        "qExpansionState": [],
        "qDynamicScript": [],
        "qContextSetExpression": ""
      }
    }
  },
  "script": "",
  "search": {
    "sorting": "auto"
  },
  "showTitles": true,
  "title": "",
  "subtitle": "",
  "footnote": "",
  "disableNavMenu": false,
  "showDetails": false,
  "showDetailsExpression": false,
  "totals": {
    "show": true,
    "position": "noTotals",
    "label": "Totals"
  },
  "scrolling": {
    "horizontal": true,
    "keepFirstColumnInView": false,
    "keepFirstColumnInViewTouch": false
  },
  "multiline": {
    "wrapTextInHeaders": true,
    "wrapTextInCells": true
  },
  "visualization": "table"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The layout says the dimension has 0 values, but the hypercube has size of 1x1&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "qInfo": {
    "qId": "WGSKDWP",
    "qType": "table"
  },
  "qMeta": {
    "privileges": [
      "read",
      "update",
      "delete",
      "exportdata"
    ]
  },
  "qSelectionInfo": {},
  "qHyperCube": {
    "qSize": {
      "qcx": 1,
      "qcy": 1
    },
    "qDimensionInfo": [
      {
        "qFallbackTitle": "emptyDimension",
        "qApprMaxGlyphCount": 1,
        "qCardinal": 0,
        "qSortIndicator": "A",
        "qGroupFallbackTitles": [
          "emptyDimension"
        ],
        "qGroupPos": 0,
        "qStateCounts": {
          "qLocked": 0,
          "qSelected": 0,
          "qOption": 0,
          "qDeselected": 0,
          "qAlternative": 0,
          "qExcluded": 0,
          "qSelectedExcluded": 0,
          "qLockedExcluded": 0
        },
        "qTags": [],
        "qDimensionType": "D",
        "qGrouping": "N",
        "qNumFormat": {
          "qType": "U",
          "qnDec": 0,
          "qUseThou": 0
        },
        "qIsAutoFormat": true,
        "qGroupFieldDefs": [
          "emptyDimension"
        ],
        "qMin": "NaN",
        "qMax": "NaN",
        "qAttrExprInfo": [
          {
            "qMin": "NaN",
            "qMax": "NaN",
            "qFallbackTitle": "='red'",
            "qNumFormat": {
              "qType": "U",
              "qnDec": 0,
              "qUseThou": 0
            },
            "qIsAutoFormat": true,
            "id": "cellBackgroundColor"
          }
        ],
        "qAttrDimInfo": [],
        "qCardinalities": {
          "qCardinal": 0,
          "qHypercubeCardinal": 1,
          "qAllValuesCardinal": -1
        },
        "autoSort": true,
        "cId": "RkuD",
        "othersLabel": "Others",
        "textAlign": {
          "auto": true,
          "align": "left"
        },
        "representation": {
          "type": "text",
          "urlPosition": "dimension",
          "urlLabel": "",
          "linkUrl": "",
          "imageSetting": "label",
          "imageLabel": "",
          "imageUrl": "",
          "imageSize": "fitHeight",
          "imagePosition": "topCenter"
        }
      }
    ],
    "qMeasureInfo": [],
    "qEffectiveInterColumnSortOrder": [
      0
    ],
    "qGrandTotalRow": [],
    "qDataPages": [],
    "qPivotDataPages": [],
    "qStackedDataPages": [],
    "qMode": "S",
    "qNoOfLeftDims": -1,
    "qTreeNodesOnDim": [],
    "qColumnOrder": [
      0
    ],
    "columnOrder": [
      0
    ],
    "columnWidths": [
      -1
    ]
  },
  "script": "",
  "search": {
    "sorting": "auto"
  },
  "showTitles": true,
  "title": "",
  "subtitle": "",
  "footnote": "",
  "disableNavMenu": false,
  "showDetails": false,
  "showDetailsExpression": false,
  "totals": {
    "show": true,
    "position": "noTotals",
    "label": "Totals"
  },
  "scrolling": {
    "horizontal": true,
    "keepFirstColumnInView": false,
    "keepFirstColumnInViewTouch": false
  },
  "multiline": {
    "wrapTextInHeaders": true,
    "wrapTextInCells": true
  },
  "visualization": "table"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 07:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-row-appearing-when-dimension-attribute-is-defined/m-p/2433137#M96786</guid>
      <dc:creator>tomas_janco</dc:creator>
      <dc:date>2024-03-21T07:06:12Z</dc:date>
    </item>
  </channel>
</rss>

