<?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: Calculate unique count of lower level within higher level in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074932#M88172</link>
    <description>&lt;P&gt;Total with or without the specifying of dimensions which should be not to consider is not a part of a set analysis which is a filtering against the data-set else it's a feature of the object-dimensionality which could be completely or partly ignored.&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 08:50:04 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2023-05-24T08:50:04Z</dc:date>
    <item>
      <title>Calculate unique count of lower level within higher level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074525#M88141</link>
      <description>&lt;P&gt;I have a table structure that looks like below, I would like to calculate count of states column.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Braveen_0-1684861080762.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107815i2E3CD204538C97FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Braveen_0-1684861080762.png" alt="Braveen_0-1684861080762.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I tried Aggr(count(distinct state), zone) which gives me result for one record per zone and remaining are blank.&lt;/P&gt;
&lt;P&gt;Any idea on how to calculate this would be great.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 17:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074525#M88141</guid>
      <dc:creator>Braveen</dc:creator>
      <dc:date>2023-05-23T17:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate unique count of lower level within higher level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074532#M88143</link>
      <description>&lt;P&gt;for now ill provide two ways to achieve this,&lt;/P&gt;
&lt;P&gt;1.&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Zone, State&lt;BR /&gt;East, State 1&lt;BR /&gt;East, State 2&lt;BR /&gt;East, State 3&lt;BR /&gt;East, State 4&lt;BR /&gt;East, State 5&lt;BR /&gt;East, State 6&lt;BR /&gt;East, State 7&lt;BR /&gt;West, State 8&lt;BR /&gt;West, State 9&lt;BR /&gt;West, State 10&lt;BR /&gt;West, State 11&lt;BR /&gt;West, State 12&lt;BR /&gt;West, State 13&lt;BR /&gt;North, State 14&lt;BR /&gt;North, State 15&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;left join(Data)&lt;BR /&gt;load Zone, count(distinct State) as [count of states]&lt;BR /&gt;resident Data&lt;BR /&gt;group by Zone;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snip.PNG" style="width: 323px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107816iB0F6A2F5A4F68BB6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snip.PNG" alt="Snip.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Not the best approach, but works if needed.&lt;/P&gt;
&lt;P&gt;In dimensions: Zone, State,&amp;nbsp; =aggr(count(distinct State),Zone)&lt;/P&gt;
&lt;P&gt;Expressions: 1&lt;/P&gt;
&lt;P&gt;Presentation tab: Hide expression column&lt;/P&gt;
&lt;P&gt;You get same result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;k&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 17:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074532#M88143</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2023-05-23T17:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate unique count of lower level within higher level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074543#M88144</link>
      <description>&lt;P&gt;You can try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Count(total &amp;lt;Zone&amp;gt; distinct State)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 18:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074543#M88144</guid>
      <dc:creator>Dementor31</dc:creator>
      <dc:date>2023-05-23T18:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate unique count of lower level within higher level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074853#M88160</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41222"&gt;@Qrishna&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This works.&amp;nbsp;&lt;STRONG&gt;In dimensions: Zone, State,&amp;nbsp; =aggr(count(distinct State),Zone)&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Why is it not the best approach?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Also, I don't follow this ( Expressions: 1, Presentation tab: Hide expression column)&lt;/P&gt;
&lt;P&gt;Would help if you could explain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 06:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074853#M88160</guid>
      <dc:creator>Braveen</dc:creator>
      <dc:date>2023-05-24T06:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate unique count of lower level within higher level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074896#M88163</link>
      <description>&lt;P&gt;aggr() creates an extra virtual table and requires a lot of resources - at least compared against native objects and normal aggregation measures. Therefore this feature should be only used if there is no other way to get the wanted view.&lt;/P&gt;
&lt;P&gt;And in your case you don't need the aggr() neither within the dimension nor in the expression else applying a total statement to ignore the dimensionality of the object should be sufficient and an expression like: count(total Field) should be working.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 07:47:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074896#M88163</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-05-24T07:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate unique count of lower level within higher level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074921#M88167</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;count(total Field) gives me total state count for all the zones, not zone wise state count.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 08:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074921#M88167</guid>
      <dc:creator>Braveen</dc:creator>
      <dc:date>2023-05-24T08:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate unique count of lower level within higher level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074922#M88168</link>
      <description>&lt;P&gt;Then:&amp;nbsp;&lt;SPAN&gt;count(total &lt;STRONG&gt;&amp;lt; Zone&amp;gt;&lt;/STRONG&gt; Field)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 08:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074922#M88168</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-05-24T08:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate unique count of lower level within higher level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074926#M88169</link>
      <description>&lt;P&gt;&lt;SPAN&gt;count(total&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt; Zone&amp;gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Field) is working.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Is&amp;nbsp;&lt;STRONG&gt;&amp;lt; Zone&amp;gt; &lt;/STRONG&gt;some advanced set analysis?&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 08:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074926#M88169</guid>
      <dc:creator>Braveen</dc:creator>
      <dc:date>2023-05-24T08:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate unique count of lower level within higher level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074929#M88170</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; When I filter for one state, the number should remain same, now, it is changing to 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 08:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074929#M88170</guid>
      <dc:creator>Braveen</dc:creator>
      <dc:date>2023-05-24T08:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate unique count of lower level within higher level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074932#M88172</link>
      <description>&lt;P&gt;Total with or without the specifying of dimensions which should be not to consider is not a part of a set analysis which is a filtering against the data-set else it's a feature of the object-dimensionality which could be completely or partly ignored.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 08:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074932#M88172</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-05-24T08:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate unique count of lower level within higher level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074936#M88175</link>
      <description>&lt;P&gt;If you want to ignore selections you may apply something like:&lt;/P&gt;
&lt;P&gt;count(&lt;STRONG&gt;{&amp;lt; State &amp;gt;}&lt;/STRONG&gt; total &amp;lt;Zone&amp;gt; Field)&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 08:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074936#M88175</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-05-24T08:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate unique count of lower level within higher level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074939#M88177</link>
      <description>&lt;P&gt;Tried this:&amp;nbsp;&lt;SPAN&gt;count(&lt;/SPAN&gt;&lt;STRONG&gt;{&amp;lt; State &amp;gt;}&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;total &amp;lt;Zone&amp;gt; Field), After applying the filter for state, metrics go blank for all states but the filtered value. Meaning, all states are still visible even after I applied the filter with correct count of states within the zone&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Tried this too, aggr(count( {&amp;lt;State=&amp;gt;}distinct State), Zone) and this is giving me desired result.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 09:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-unique-count-of-lower-level-within-higher-level/m-p/2074939#M88177</guid>
      <dc:creator>Braveen</dc:creator>
      <dc:date>2023-05-24T09:07:52Z</dc:date>
    </item>
  </channel>
</rss>

