<?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 showing growth percentage from last week to this week registrations in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2507798#M104403</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/330117"&gt;@Abhi_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see you dont have a sales or something that you will sum / count in your sample data. I just added a Sales column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my result&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JandreKillianRIC_0-1740741674744.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177997i1FF7CCF393B90DA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JandreKillianRIC_0-1740741674744.png" alt="JandreKillianRIC_0-1740741674744.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My Code&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Load 
	*, 
    Year(Reg_Date)&amp;amp;' - '&amp;amp;Weeknumber as WeekYear,
    Year(Reg_Date)&amp;amp;Num(Weeknumber, 00) as WeekYearNum,
    ;
Load * Inline [
Reg_Date,Code,Weeknumber,Sales
45597,12a,44,546
45608,10c,46,325
45616,13a,47,879
45622,13c,48,956
45623,14d,48,747
45635,17d,50,72
45645,15b,51,793
45651,15b,52,669
45653,15b,52,910
45839,12a,27,525
45839,12a,27,655
45841,13a,27,340
45842,13a,27,830
45860,14a,30,403
45861,12a,30,499
45863,10c,30,945
45842,13a,27,787
45839,15b,27,907
45870,16d,31,378
45880,18e,33,195
45882,13c,33,479
45886,13c,34,745
45888,13c,34,405
45890,10c,34,711
45892,13a,34,422
45897,13c,35,667
45899,14d,35,96
];

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure in the KPI Object&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;WeekYearNum = {"$(=Max(WeekYearNum))"}&amp;gt;} Sales) / &lt;BR /&gt;Sum({&amp;lt;WeekYearNum = {"$(=Max(WeekYearNum, 2))"}&amp;gt;} Sales) - 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards Jandre&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2025 11:22:03 GMT</pubDate>
    <dc:creator>JandreKillianRIC</dc:creator>
    <dc:date>2025-02-28T11:22:03Z</dc:date>
    <item>
      <title>KPI showing growth percentage from last week to this week registrations</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2507786#M104402</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have an app that measures registrations made on an online platform.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my data table, there is&lt;/P&gt;
&lt;P&gt;- Reg_Date -- the date of registration&lt;BR /&gt;- Code -- Unique code linked to user&lt;BR /&gt;- Week number that I extract&lt;/P&gt;
&lt;P&gt;I want to create a KPI, that will simply show me what is the growth (+ or -) in total number of registrations from last week to this week.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As shown in the picture below, I want the KPI to show 11% which is the growth from 1.52k in 7th week 2025 to 1.69k in 8th week 2025.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Abhi__0-1740737343891.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177994iE58304059EE49276/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Abhi__0-1740737343891.png" alt="Abhi__0-1740737343891.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have added a sample xlsx file for ref of the data (its modified to maintain confidentiality). Would appreciate any help as I am very new to Qlik!&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 10:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2507786#M104402</guid>
      <dc:creator>Abhi_</dc:creator>
      <dc:date>2025-02-28T10:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: KPI showing growth percentage from last week to this week registrations</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2507798#M104403</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/330117"&gt;@Abhi_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see you dont have a sales or something that you will sum / count in your sample data. I just added a Sales column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my result&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JandreKillianRIC_0-1740741674744.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177997i1FF7CCF393B90DA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JandreKillianRIC_0-1740741674744.png" alt="JandreKillianRIC_0-1740741674744.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My Code&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Load 
	*, 
    Year(Reg_Date)&amp;amp;' - '&amp;amp;Weeknumber as WeekYear,
    Year(Reg_Date)&amp;amp;Num(Weeknumber, 00) as WeekYearNum,
    ;
Load * Inline [
Reg_Date,Code,Weeknumber,Sales
45597,12a,44,546
45608,10c,46,325
45616,13a,47,879
45622,13c,48,956
45623,14d,48,747
45635,17d,50,72
45645,15b,51,793
45651,15b,52,669
45653,15b,52,910
45839,12a,27,525
45839,12a,27,655
45841,13a,27,340
45842,13a,27,830
45860,14a,30,403
45861,12a,30,499
45863,10c,30,945
45842,13a,27,787
45839,15b,27,907
45870,16d,31,378
45880,18e,33,195
45882,13c,33,479
45886,13c,34,745
45888,13c,34,405
45890,10c,34,711
45892,13a,34,422
45897,13c,35,667
45899,14d,35,96
];

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure in the KPI Object&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;WeekYearNum = {"$(=Max(WeekYearNum))"}&amp;gt;} Sales) / &lt;BR /&gt;Sum({&amp;lt;WeekYearNum = {"$(=Max(WeekYearNum, 2))"}&amp;gt;} Sales) - 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards Jandre&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 11:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2507798#M104403</guid>
      <dc:creator>JandreKillianRIC</dc:creator>
      <dc:date>2025-02-28T11:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: KPI showing growth percentage from last week to this week registrations</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2507829#M104410</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/174995"&gt;@JandreKillianRIC&lt;/a&gt;,&lt;BR /&gt;Big thanks for your reply !! the first solution helps a lot!!&lt;BR /&gt;And I just realized I need to explain my problem better. So here goes another try with similar sample set.&lt;/P&gt;
&lt;P&gt;The field to be counted is Code.&lt;BR /&gt;I want my KPI to show what is the growth in number of unique codes from previous week to current week.&lt;BR /&gt;Taking my sample data:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Abhi__0-1740751940391.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178005i1FB1FAD86C4D6A94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Abhi__0-1740751940391.png" alt="Abhi__0-1740751940391.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;- End of Week 34 has 11 unique IDs&lt;BR /&gt;- End of Week 35 has 12 unique IDs&lt;BR /&gt;So the growth in Week 35 is 9%.&lt;/P&gt;
&lt;P&gt;Hope this is more clarifying!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 14:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2507829#M104410</guid>
      <dc:creator>Abhi_</dc:creator>
      <dc:date>2025-02-28T14:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: KPI showing growth percentage from last week to this week registrations</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2507836#M104412</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/330117"&gt;@Abhi_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if I get you right but&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the KPI formula:&lt;/P&gt;
&lt;P&gt;(Count({&amp;lt;Week = {$(week_now)}&amp;gt;}distinct Code) / Count({&amp;lt;Week = {$(prev_week)}&amp;gt;}distinct Code)) -1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For today's week:&lt;/P&gt;
&lt;P&gt;Variable: week_now: =week(today())&lt;/P&gt;
&lt;P&gt;Variable: prev_week: =week(today()-7)&lt;/P&gt;
&lt;P&gt;remember to leave = in definision of variables&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your custom week number just type :&lt;/P&gt;
&lt;P&gt;Variable: week_now: = 2&lt;/P&gt;
&lt;P&gt;Variable: prev_week: = 1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for just max week of yor data:&lt;/P&gt;
&lt;P&gt;Variable: week_now: = Max(Week)&lt;/P&gt;
&lt;P&gt;Variable: prev_week: = Max(Week)-1&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 15:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2507836#M104412</guid>
      <dc:creator>BPiotrowski</dc:creator>
      <dc:date>2025-02-28T15:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: KPI showing growth percentage from last week to this week registrations</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2508164#M104457</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/318470"&gt;@BPiotrowski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply! but unfortunately it doesnt solve my problem.&lt;/P&gt;
&lt;P&gt;Your solution gives the same answer as Jandre. Both are perfect when I am want to know growth in just number of codes from previous week to current week.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I am looking for how many unique ids got added to the data table from previous week to current week.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 09:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2508164#M104457</guid>
      <dc:creator>Abhi_</dc:creator>
      <dc:date>2025-03-04T09:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: KPI showing growth percentage from last week to this week registrations</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2508181#M104458</link>
      <description>&lt;P&gt;Thanks for sharing information&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 09:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2508181#M104458</guid>
      <dc:creator>apomovers</dc:creator>
      <dc:date>2025-03-04T09:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: KPI showing growth percentage from last week to this week registrations</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2508333#M104502</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/330117"&gt;@Abhi_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for only replying now. Here is the measure&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Count(Distinct {&amp;lt;WeekYearNum = {"&amp;lt;=$(=Max(WeekYearNum))"}&amp;gt;} Code) /&lt;BR /&gt;Count(Distinct {&amp;lt;WeekYearNum = {"&amp;lt;=$(=Max(WeekYearNum, 2))"}&amp;gt;} Code)) - 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JandreKillianRIC_0-1741156042526.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178142iE736ED3EC49732EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JandreKillianRIC_0-1741156042526.png" alt="JandreKillianRIC_0-1741156042526.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards Jandre&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 06:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2508333#M104502</guid>
      <dc:creator>JandreKillianRIC</dc:creator>
      <dc:date>2025-03-05T06:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: KPI showing growth percentage from last week to this week registrations</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2508398#M104515</link>
      <description>&lt;P&gt;Hi Jandre! This is perfect!! Many thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 10:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-showing-growth-percentage-from-last-week-to-this-week/m-p/2508398#M104515</guid>
      <dc:creator>Abhi_</dc:creator>
      <dc:date>2025-03-05T10:28:34Z</dc:date>
    </item>
  </channel>
</rss>

