<?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 Qlik Sense KPI count value with distinct from another value in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-KPI-count-value-with-distinct-from-another-value/m-p/1535372#M38604</link>
    <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I'm in need of the community! I've made a pie chart that is specified like this:&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;=ExceptionType&lt;/P&gt;&lt;P&gt;Measures:&lt;/P&gt;&lt;P&gt;Count(distinct [CustomerName])&lt;/P&gt;&lt;P&gt;This shows me how many types of exceptions there were in a period without counting twice an exception to the same Customer&lt;/P&gt;&lt;P&gt;An example of a table would be:&lt;/P&gt;&lt;P&gt;ID||ExceptionType||CustomerName&lt;/P&gt;&lt;P&gt;1||Management||John&lt;/P&gt;&lt;P&gt;2||Management||John&lt;/P&gt;&lt;P&gt;3||Employee||Rob&lt;/P&gt;&lt;P&gt;4||Sales||Sue&lt;/P&gt;&lt;P&gt;5||Sales||Bob&lt;/P&gt;&lt;P&gt;The chart shows me 1 Management exception, 1 Employee Exception and 2 Sales exceptions totalling 4 exceptions.&lt;/P&gt;&lt;P&gt;I need to create a KPI that is the total of what is shown in the chart. I'm sure it's somehow easy but couldn't figure it out.&lt;/P&gt;&lt;P&gt;Count(ExceptionType) shows me 5 exceptions total (2 from Management when it should be 1 because it's a duplicate entry).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2019 17:47:31 GMT</pubDate>
    <dc:creator>Fedemar</dc:creator>
    <dc:date>2019-01-25T17:47:31Z</dc:date>
    <item>
      <title>Qlik Sense KPI count value with distinct from another value</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-KPI-count-value-with-distinct-from-another-value/m-p/1535372#M38604</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I'm in need of the community! I've made a pie chart that is specified like this:&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;=ExceptionType&lt;/P&gt;&lt;P&gt;Measures:&lt;/P&gt;&lt;P&gt;Count(distinct [CustomerName])&lt;/P&gt;&lt;P&gt;This shows me how many types of exceptions there were in a period without counting twice an exception to the same Customer&lt;/P&gt;&lt;P&gt;An example of a table would be:&lt;/P&gt;&lt;P&gt;ID||ExceptionType||CustomerName&lt;/P&gt;&lt;P&gt;1||Management||John&lt;/P&gt;&lt;P&gt;2||Management||John&lt;/P&gt;&lt;P&gt;3||Employee||Rob&lt;/P&gt;&lt;P&gt;4||Sales||Sue&lt;/P&gt;&lt;P&gt;5||Sales||Bob&lt;/P&gt;&lt;P&gt;The chart shows me 1 Management exception, 1 Employee Exception and 2 Sales exceptions totalling 4 exceptions.&lt;/P&gt;&lt;P&gt;I need to create a KPI that is the total of what is shown in the chart. I'm sure it's somehow easy but couldn't figure it out.&lt;/P&gt;&lt;P&gt;Count(ExceptionType) shows me 5 exceptions total (2 from Management when it should be 1 because it's a duplicate entry).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 17:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-KPI-count-value-with-distinct-from-another-value/m-p/1535372#M38604</guid>
      <dc:creator>Fedemar</dc:creator>
      <dc:date>2019-01-25T17:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense KPI count value with distinct from another value</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-KPI-count-value-with-distinct-from-another-value/m-p/1535382#M38606</link>
      <description>Sum(Aggr(Count(distinct [CustomerName]),ExceptionType))</description>
      <pubDate>Fri, 25 Jan 2019 18:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-KPI-count-value-with-distinct-from-another-value/m-p/1535382#M38606</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2019-01-25T18:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense KPI count value with distinct from another value</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-KPI-count-value-with-distinct-from-another-value/m-p/1535389#M38608</link>
      <description>&lt;P&gt;I'm sorry but doesn't seem to be giving me the number I'm looking for. Could it be because there are some ID's that have the Exception Type as null? Is there any way to exclude ExceptionType null values? Perhaps with set analysis on the ExceptionType part?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 19:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-KPI-count-value-with-distinct-from-another-value/m-p/1535389#M38608</guid>
      <dc:creator>Fedemar</dc:creator>
      <dc:date>2019-01-25T19:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense KPI count value with distinct from another value</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-KPI-count-value-with-distinct-from-another-value/m-p/1535398#M38609</link>
      <description>&lt;P&gt;Dwforest,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried what you wrote previously but it opened a little more my mind given you thought it the same way. I added a set expression to filter null values and it worked! I'm posting the solution here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Count({&amp;lt;[&lt;SPAN&gt;ExceptionType&lt;/SPAN&gt;]-={"","NULL"}&amp;gt;}distinct [&lt;SPAN&gt;CustomerName]&lt;/SPAN&gt;),[&lt;SPAN&gt;ExceptionType]&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 19:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-KPI-count-value-with-distinct-from-another-value/m-p/1535398#M38609</guid>
      <dc:creator>Fedemar</dc:creator>
      <dc:date>2019-01-25T19:14:48Z</dc:date>
    </item>
  </channel>
</rss>

