<?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: Facing issue in finding in distinct count of a dimension based on metric condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055768#M86733</link>
    <description>&lt;P&gt;Unfortunately no. I thought on real numbers.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 16:03:18 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2023-03-31T16:03:18Z</dc:date>
    <item>
      <title>Facing issue in finding in distinct count of a dimension based on metric condition</title>
      <link>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055191#M86694</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Please find the code required for this problem statement -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;App:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Id,Name&lt;BR /&gt;1,App Name1&lt;BR /&gt;2,App Name2&lt;BR /&gt;3,App Name3&lt;BR /&gt;4,App Name4&lt;BR /&gt;5,App Name5&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Log:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Id,UserId&lt;BR /&gt;1,User1&lt;BR /&gt;2,User2&lt;BR /&gt;3,User3&lt;BR /&gt;4,User4&lt;BR /&gt;5,User5&lt;BR /&gt;1,User6&lt;BR /&gt;2,User4&lt;BR /&gt;3,User5&lt;BR /&gt;4,User2&lt;BR /&gt;5,User7&lt;BR /&gt;1,User8&lt;BR /&gt;2,User9&lt;BR /&gt;3,User4&lt;BR /&gt;4,User5&lt;BR /&gt;5,User2&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Employee:&lt;BR /&gt;Load * Inline [ &lt;BR /&gt;UserId,Desk,Role&lt;BR /&gt;User1,Desk1,Role1&lt;BR /&gt;User2,Desk2,Role2&lt;BR /&gt;User3,Desk3,Role3&lt;BR /&gt;User4,Desk4,Role4&lt;BR /&gt;User5,Desk5,Role5&lt;BR /&gt;User6,Desk3,Role6&lt;BR /&gt;User7,Desk4,Role7&lt;BR /&gt;User8,Desk8,Role3&lt;BR /&gt;User9,Desk2,Role4&lt;BR /&gt;User10,Desk10,Role10&lt;BR /&gt;User11,Desk3,Role11&lt;BR /&gt;User12,Desk4,Role12&lt;BR /&gt;User13,Desk13,Role13&lt;BR /&gt;User14,Desk14,Role3&lt;BR /&gt;User15,Desk15,Role4&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a pivot table and use&amp;nbsp; Role and Desk and dimension while Name as a filter selection. Metric should be&amp;nbsp; -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;Count(distinct {&amp;lt;Id ={"1","2","3","4","5"}&amp;gt;}UserId) - this will provide the list who accessed the app&lt;/P&gt;
&lt;P&gt;2. Count(distinct{&amp;lt;Name=&amp;gt;} UserId) - this will give all the users available&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp;If(Count(distinct {&amp;lt;Id ={"1","2","3","4","5"}&amp;gt;}UserId) =0,1) - this condition will be used to find all the desk under which none of the users had accessed the app when we select Name as a filter&lt;/P&gt;
&lt;P&gt;when am trying aggregation on #3 above its not providing the actual count&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help here is much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 13:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055191#M86694</guid>
      <dc:creator>punitpopli</dc:creator>
      <dc:date>2023-03-30T13:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue in finding in distinct count of a dimension based on metric condition</title>
      <link>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055238#M86700</link>
      <description>&lt;P&gt;A direct counting of NULL isn't possible but you may try it with indirect ways - maybe something like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Count(distinct{&amp;lt;Name=&amp;gt;} UserId) -&amp;nbsp;Count(distinct {&amp;lt;Id ={"1","2","3","4","5"}&amp;gt;}UserId)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 14:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055238#M86700</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-30T14:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue in finding in distinct count of a dimension based on metric condition</title>
      <link>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055321#M86711</link>
      <description>&lt;P&gt;thank you Marcus for your response.&lt;/P&gt;
&lt;P&gt;I am looking to use the calculation to display # of desk as a KPI and by using the difference will be unable to achieve the KPI&lt;/P&gt;
&lt;P&gt;Is their any other way I can find the #of desk and user under the same?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 16:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055321#M86711</guid>
      <dc:creator>punitpopli</dc:creator>
      <dc:date>2023-03-30T16:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue in finding in distinct count of a dimension based on metric condition</title>
      <link>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055495#M86720</link>
      <description>&lt;P&gt;You may need to extend the above mentioned main-logic to count also the Desk and the combination of UserId and Desk, like:&lt;/P&gt;
&lt;P&gt;count(distinct Desk)&lt;/P&gt;
&lt;P&gt;count(distinct Desk&amp;amp;UserId)&lt;/P&gt;
&lt;P&gt;as parts of the final calculation.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 06:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055495#M86720</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-31T06:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue in finding in distinct count of a dimension based on metric condition</title>
      <link>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055670#M86728</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;am unable to follow, would you mind sharing the expression what you are referring too?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 12:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055670#M86728</guid>
      <dc:creator>punitpopli</dc:creator>
      <dc:date>2023-03-31T12:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue in finding in distinct count of a dimension based on metric condition</title>
      <link>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055675#M86729</link>
      <description>&lt;P&gt;In regard to your shown example of inline-tables - what are the expected results for your expressions?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 12:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055675#M86729</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-31T12:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue in finding in distinct count of a dimension based on metric condition</title>
      <link>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055679#M86730</link>
      <description>&lt;P&gt;By Using Expression #1 and #2 what I am looking for is -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Out of total 15 users only 3 are accessing App 1/2 and what are the &amp;nbsp;# of desk which has users are not accessing the application and total user under the same desk(s)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 12:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055679#M86730</guid>
      <dc:creator>punitpopli</dc:creator>
      <dc:date>2023-03-31T12:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue in finding in distinct count of a dimension based on metric condition</title>
      <link>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055717#M86731</link>
      <description>&lt;P&gt;Sorry, it's not clear which results are expected for expression:&lt;/P&gt;
&lt;P&gt;1 = ?&lt;/P&gt;
&lt;P&gt;2 = ?&lt;/P&gt;
&lt;P&gt;3 = ?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 13:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055717#M86731</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-31T13:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue in finding in distinct count of a dimension based on metric condition</title>
      <link>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055734#M86732</link>
      <description>&lt;P&gt;Exp # 3 is based on Exp #1 -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;Count(distinct {&amp;lt;Id ={"1","2","3","4","5"}&amp;gt;}UserId) -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Count(distinct{&amp;lt;Name=&amp;gt;} UserId) - this will give all the users available&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp;If(Count(distinct {&amp;lt;Id ={"1","2","3","4","5"}&amp;gt;}UserId) =0,1)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I wan to find all the desks and User under that desk which have not accessed the app using aforementioned expressions (probably #1 or #3) While #2 provides&amp;nbsp;the laundry list of all the users in the system&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please let me know if aforementioned explanation&amp;nbsp;helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 14:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055734#M86732</guid>
      <dc:creator>punitpopli</dc:creator>
      <dc:date>2023-03-31T14:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue in finding in distinct count of a dimension based on metric condition</title>
      <link>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055768#M86733</link>
      <description>&lt;P&gt;Unfortunately no. I thought on real numbers.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 16:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Facing-issue-in-finding-in-distinct-count-of-a-dimension-based/m-p/2055768#M86733</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-31T16:03:18Z</dc:date>
    </item>
  </channel>
</rss>

