<?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 Ignore table dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Ignore-table-dimension/m-p/1686247#M52262</link>
    <description>&lt;P&gt;I suspect I'm going to have a "D'oh!" moment when someone gives me the solution...&lt;/P&gt;&lt;P&gt;I have a data table of patients with dimensions PatientID, AgeGroup.&lt;/P&gt;&lt;P&gt;I have a data table of conditions with dimensions PatientID, Condition. A subset of all patients are in it.&lt;/P&gt;&lt;P&gt;I created a straight table with dimensions AgeGroup and Condition; the measure is the % of all patients who have each Condition. For example, "Asthma" is a Condition, so the result should be:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;AgeGroup&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Condition&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;%ofPatients&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0-17&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Asthma&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;4%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The calculation is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(distinct PatientID)/Count(Total &amp;lt;[Age Group]&amp;gt; Distinct PatientID)&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;My problem:&lt;/STRONG&gt; When I uncheck 'Include null values' for Condition, the denominator includes only patients who have one of the conditions. But I need it to include ALL patients, including those not in the Conditions data table. I want to know what percent of &lt;U&gt;all&lt;/U&gt; of the kids have asthma, what percent have diabetes, etc.&lt;/P&gt;&lt;P&gt;Am I forced to include null values for Condition for the calculation to be correct?&lt;/P&gt;&lt;P&gt;I tried replacing Total with All. Didn't help. I tried adding all PatientID values to the Conditions data table with a value of 'NA' in the Condition field. That works mathematically, but having a row for 'NA' is totally confusing for users.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
    <dc:creator>Lauri</dc:creator>
    <dc:date>2021-12-20T21:32:42Z</dc:date>
    <item>
      <title>Ignore table dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-table-dimension/m-p/1686247#M52262</link>
      <description>&lt;P&gt;I suspect I'm going to have a "D'oh!" moment when someone gives me the solution...&lt;/P&gt;&lt;P&gt;I have a data table of patients with dimensions PatientID, AgeGroup.&lt;/P&gt;&lt;P&gt;I have a data table of conditions with dimensions PatientID, Condition. A subset of all patients are in it.&lt;/P&gt;&lt;P&gt;I created a straight table with dimensions AgeGroup and Condition; the measure is the % of all patients who have each Condition. For example, "Asthma" is a Condition, so the result should be:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;AgeGroup&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Condition&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;%ofPatients&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0-17&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Asthma&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;4%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The calculation is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(distinct PatientID)/Count(Total &amp;lt;[Age Group]&amp;gt; Distinct PatientID)&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;My problem:&lt;/STRONG&gt; When I uncheck 'Include null values' for Condition, the denominator includes only patients who have one of the conditions. But I need it to include ALL patients, including those not in the Conditions data table. I want to know what percent of &lt;U&gt;all&lt;/U&gt; of the kids have asthma, what percent have diabetes, etc.&lt;/P&gt;&lt;P&gt;Am I forced to include null values for Condition for the calculation to be correct?&lt;/P&gt;&lt;P&gt;I tried replacing Total with All. Didn't help. I tried adding all PatientID values to the Conditions data table with a value of 'NA' in the Condition field. That works mathematically, but having a row for 'NA' is totally confusing for users.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-table-dimension/m-p/1686247#M52262</guid>
      <dc:creator>Lauri</dc:creator>
      <dc:date>2021-12-20T21:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore table dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-table-dimension/m-p/1686263#M52264</link>
      <description>&lt;P&gt;May be try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT PatientID)/Aggr(Count(DISTINCT PatientID), [Age Group])&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 19 Mar 2020 19:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-table-dimension/m-p/1686263#M52264</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-19T19:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore table dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-table-dimension/m-p/1686281#M52265</link>
      <description>&lt;P&gt;Yes! I just had to add NODISTINCT to the Aggr function.&lt;/P&gt;&lt;P&gt;Thanks so much. (But I didn't slap my forehead with a D'oh! -- this wasn't obvious to me!)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 20:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-table-dimension/m-p/1686281#M52265</guid>
      <dc:creator>Lauri</dc:creator>
      <dc:date>2020-03-19T20:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore table dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-table-dimension/m-p/1686454#M52289</link>
      <description>&lt;P&gt;Oh ya, I totally forgot to add the NODISTINCT in there.. good catch...&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 11:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-table-dimension/m-p/1686454#M52289</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-20T11:41:57Z</dc:date>
    </item>
  </channel>
</rss>

