<?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 Developing KPI based data 3 months back in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Developing-KPI-based-data-3-months-back/m-p/1623978#M46465</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to develop 2 KPI measures that users can track the percentage over a time (that a user selects):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;KPI Volume %:&amp;nbsp; # Distinct Accounts Discharged +&amp;nbsp; Denied (3 months prior) / #Distinct Accounts Discharged&amp;nbsp;(3 months prior)&lt;/P&gt;&lt;P&gt;2. KPI Amount %:&amp;nbsp; Denied Amount (3 months prior) /Total Charges (3 months prior)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having issues and was hoping someone could point me in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example; say a user selected the dates between 2018-07 and 2019-02.&amp;nbsp; Here is a small sample of what the raw data would look like (see attached):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data attached looks at a few ACCOUNTS in my data set.&amp;nbsp; An account can have a denial attached, indicated by the Denial_ID (if it is blank then no denial occurred).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 2 dates to be aware of is "DISCHARGE_DATE" and "DENIAL_DATE" (when it was denied).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request is look at a given date range, that the user selects, and to then look back 3 months prior to determine:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The number of distinct Accounts that were Discharged + Denied attached (numerator)&lt;/P&gt;&lt;P&gt;2. The number of distinct Accounts that were discharged (denominator)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will give me a % that will become my KPI (see attached).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What method would be easiest to implement in order to calculate the 2 KPI's I'm after (3 months prior).&amp;nbsp; I'm playing around with Set Analysis and Flags within my load script but to no avail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:04:48 GMT</pubDate>
    <dc:creator>john_Talampas</dc:creator>
    <dc:date>2024-11-16T20:04:48Z</dc:date>
    <item>
      <title>Developing KPI based data 3 months back</title>
      <link>https://community.qlik.com/t5/App-Development/Developing-KPI-based-data-3-months-back/m-p/1623978#M46465</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to develop 2 KPI measures that users can track the percentage over a time (that a user selects):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;KPI Volume %:&amp;nbsp; # Distinct Accounts Discharged +&amp;nbsp; Denied (3 months prior) / #Distinct Accounts Discharged&amp;nbsp;(3 months prior)&lt;/P&gt;&lt;P&gt;2. KPI Amount %:&amp;nbsp; Denied Amount (3 months prior) /Total Charges (3 months prior)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having issues and was hoping someone could point me in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example; say a user selected the dates between 2018-07 and 2019-02.&amp;nbsp; Here is a small sample of what the raw data would look like (see attached):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data attached looks at a few ACCOUNTS in my data set.&amp;nbsp; An account can have a denial attached, indicated by the Denial_ID (if it is blank then no denial occurred).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 2 dates to be aware of is "DISCHARGE_DATE" and "DENIAL_DATE" (when it was denied).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request is look at a given date range, that the user selects, and to then look back 3 months prior to determine:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The number of distinct Accounts that were Discharged + Denied attached (numerator)&lt;/P&gt;&lt;P&gt;2. The number of distinct Accounts that were discharged (denominator)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will give me a % that will become my KPI (see attached).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What method would be easiest to implement in order to calculate the 2 KPI's I'm after (3 months prior).&amp;nbsp; I'm playing around with Set Analysis and Flags within my load script but to no avail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Developing-KPI-based-data-3-months-back/m-p/1623978#M46465</guid>
      <dc:creator>john_Talampas</dc:creator>
      <dc:date>2024-11-16T20:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Developing KPI based data 3 months back</title>
      <link>https://community.qlik.com/t5/App-Development/Developing-KPI-based-data-3-months-back/m-p/1624020#M46470</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;flags and set analysis is the right way to go. The way I would do it is like this:&lt;/P&gt;&lt;P&gt;1. Create master calendar, link denial &amp;amp; discharge date to master calendar.&lt;/P&gt;&lt;P&gt;2. Create monthly flag like this: Year*12 + Month = for 2019-02 this would be 24230. Now you have unique number for each month in any year which is ordered and use it in set analysis.&lt;/P&gt;&lt;P&gt;3. You will have to use three conditions in set analysis - Max(Flag), Max(Flag)-1 and Max(Flag)-2. This way it will always calculate 3 months back from selected month, or last 3 months if no selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is very top level description on how to do this, but I hope this helps you&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 07:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Developing-KPI-based-data-3-months-back/m-p/1624020#M46470</guid>
      <dc:creator>DavidM</dc:creator>
      <dc:date>2019-09-16T07:01:48Z</dc:date>
    </item>
  </channel>
</rss>

