<?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: KPI AGGR or Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/KPI-AGGR-or-Set-Analysis/m-p/2521972#M106622</link>
    <description>&lt;P&gt;update on what I am trying to do - this is my KPI:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count(
  DISTINCT
  Aggr(
    If(
      FirstSortedValue(CLASSIFICATION, -VALID_TO) = CLASSIFICATION,
      USER_ID, [Type ID]
    ),
    USER_ID
  )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;The KPI tried to latest classification per type id for each user and count them.&lt;BR /&gt;&lt;BR /&gt;this is my attempt before adding in the filters to type C.&amp;nbsp; The&amp;nbsp; problem here is that this somehow filters out user ids that have classifications and I am not sure why.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jun 2025 13:23:31 GMT</pubDate>
    <dc:creator>rx98u5pq</dc:creator>
    <dc:date>2025-06-23T13:23:31Z</dc:date>
    <item>
      <title>KPI AGGR or Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-AGGR-or-Set-Analysis/m-p/2521953#M106617</link>
      <description>&lt;P&gt;i have users with different classifications: A.B,C - they can only 1 classification for a given date...but it can change over time.&lt;BR /&gt;&lt;BR /&gt;I want a KPI which counts all users who have a classification of C as their latest classification.&amp;nbsp; The latest classification is by date...so if a date is selected the users classification may change&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;e.g. user: John&lt;BR /&gt;he was Type A from 2000-2020&lt;BR /&gt;he was Type C from 2021 - onwards.&lt;BR /&gt;&lt;BR /&gt;User: Jack&lt;/P&gt;
&lt;P&gt;he was Type C from 2000-2015&lt;BR /&gt;he was Type A from 2016 onwards&lt;BR /&gt;&lt;BR /&gt;If 2025 was selected&amp;nbsp; John would be Type C and Jack would be type A&lt;BR /&gt;If 2010 was selected John would be Type A and Jack would be type C&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;If no date was selected, John would be Type C and Jack would be Type A&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;In a KPI I am not sure how to do this as I don't think we can use set analysis...would it be some form of AGGR using max date per user?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 11:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-AGGR-or-Set-Analysis/m-p/2521953#M106617</guid>
      <dc:creator>rx98u5pq</dc:creator>
      <dc:date>2025-06-23T11:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: KPI AGGR or Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-AGGR-or-Set-Analysis/m-p/2521972#M106622</link>
      <description>&lt;P&gt;update on what I am trying to do - this is my KPI:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count(
  DISTINCT
  Aggr(
    If(
      FirstSortedValue(CLASSIFICATION, -VALID_TO) = CLASSIFICATION,
      USER_ID, [Type ID]
    ),
    USER_ID
  )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;The KPI tried to latest classification per type id for each user and count them.&lt;BR /&gt;&lt;BR /&gt;this is my attempt before adding in the filters to type C.&amp;nbsp; The&amp;nbsp; problem here is that this somehow filters out user ids that have classifications and I am not sure why.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 13:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-AGGR-or-Set-Analysis/m-p/2521972#M106622</guid>
      <dc:creator>rx98u5pq</dc:creator>
      <dc:date>2025-06-23T13:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: KPI AGGR or Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-AGGR-or-Set-Analysis/m-p/2521979#M106624</link>
      <description>&lt;P&gt;since your report includes historical values i would suggest you to force the selections inside the page with the total KPI and don't make it visible without them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another solution could be include a variable in set analysis and then put a variable setting object beside the KPI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please feel free to leave a like if this comment helps you out!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Federico&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 14:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-AGGR-or-Set-Analysis/m-p/2521979#M106624</guid>
      <dc:creator>FedericoDellAcqua</dc:creator>
      <dc:date>2025-06-23T14:18:39Z</dc:date>
    </item>
  </channel>
</rss>

