<?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: How to show the distinct values under cumulative sum in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2490110#M101894</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41222"&gt;@Qrishna&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;185 is the distinct reach count of previous week.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 09:09:01 GMT</pubDate>
    <dc:creator>Daya_Acc</dc:creator>
    <dc:date>2024-10-31T09:09:01Z</dc:date>
    <item>
      <title>How to show the distinct values under cumulative sum</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2489178#M101765</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have below result post cumulative result by using below expression:&lt;/P&gt;
&lt;P&gt;sum(aggr(RangeSum(above (total(count(distinct Reach)),0,RowNo())),Week))&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daya_Acc_2-1729858317749.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173438i6B6A611B9E5D0E13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daya_Acc_2-1729858317749.png" alt="Daya_Acc_2-1729858317749.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But i want to get the cumulative result as a distinct value of each week as explained in below screenshot and final result would be cumulative column.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daya_Acc_1-1729858276787.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173437i7276F6890D885703/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daya_Acc_1-1729858276787.png" alt="Daya_Acc_1-1729858276787.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;let me know if you guys need more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Daya&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 12:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2489178#M101765</guid>
      <dc:creator>Daya_Acc</dc:creator>
      <dc:date>2024-10-25T12:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the distinct values under cumulative sum</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2489201#M101767</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/316512"&gt;@Daya_Acc&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;sum(aggr(RangeSum(
           above(sum(aggr(count(distinct Reach),Reach))
            , 0, RowNo()))
,Week))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 25 Oct 2024 14:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2489201#M101767</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-25T14:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the distinct values under cumulative sum</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2489258#M101775</link>
      <description>&lt;P&gt;I dint really get how you are trying to calculate the cumsum in the 2nd picture? lets say 185 in the last cell of cumulative column, can you explain how you arrived at that summation?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 22:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2489258#M101775</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-10-25T22:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the distinct values under cumulative sum</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2489269#M101780</link>
      <description>&lt;P&gt;Hi, you can have a solution like the asof calendar but for weeks:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This way you can have each dimension accessing the data of his own row and the previous row in the expression and you could use a simple:&amp;nbsp;&lt;SPAN&gt;Count&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;distinct&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;{$&amp;lt;&lt;/SPAN&gt;&lt;EM&gt;WeekDiff&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;={"&amp;lt;2"}&lt;/EM&gt;&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Reach&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2024 06:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2489269#M101780</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-10-26T06:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the distinct values under cumulative sum</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2490110#M101894</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41222"&gt;@Qrishna&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;185 is the distinct reach count of previous week.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 09:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2490110#M101894</guid>
      <dc:creator>Daya_Acc</dc:creator>
      <dc:date>2024-10-31T09:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the distinct values under cumulative sum</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2490517#M101936</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the given expression and able to find the distinct cumulative value except 1st row. 1st row value should be same as it is already distinct count.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daya_Acc_0-1730708614172.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173743i91700E04440815DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daya_Acc_0-1730708614172.png" alt="Daya_Acc_0-1730708614172.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Getting below output.&lt;/P&gt;
&lt;TABLE width="353px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="155.875px"&gt;
&lt;P&gt;&lt;STRONG&gt;Week&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="58.825px"&gt;
&lt;P&gt;&lt;STRONG&gt;Reach&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="137.5px"&gt;
&lt;P&gt;&lt;STRONG&gt;Cumulative&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="155.875px"&gt;
&lt;P&gt;WK of 06 May'24&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="58.825px"&gt;
&lt;P&gt;119&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="137.5px"&gt;
&lt;P&gt;62&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="155.875px"&gt;
&lt;P&gt;WK of 13 May'24&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="58.825px"&gt;
&lt;P&gt;80&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="137.5px"&gt;
&lt;P&gt;150&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="155.875px"&gt;
&lt;P&gt;WK of 20 May'24&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="58.825px"&gt;
&lt;P&gt;51&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="137.5px"&gt;
&lt;P&gt;170&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="155.875px"&gt;
&lt;P&gt;WK of 27 May'24&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="58.825px"&gt;
&lt;P&gt;25&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="137.5px"&gt;
&lt;P&gt;185&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i'm very close to it, could you please help here to get this resolved quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 08:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2490517#M101936</guid>
      <dc:creator>Daya_Acc</dc:creator>
      <dc:date>2024-11-04T08:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the distinct values under cumulative sum</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2490549#M101940</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/316512"&gt;@Daya_Acc&lt;/a&gt;&amp;nbsp; may be try sorting in aggr. If you have Numeric week value it will be beneficial to sort it in aggr&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;sum(aggr(RangeSum(
           above(sum(aggr(count(distinct Reach),Reach))
            , 0, RowNo()))
,(WeekNumeric,(NUMERIC))))

or

sum(aggr(RangeSum(
           above(sum(aggr(count(distinct Reach),Reach))
            , 0, RowNo()))
,(Week,(TEXT))))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Nov 2024 10:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2490549#M101940</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-11-04T10:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the distinct values under cumulative sum</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2491974#M102128</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm using the same expression as below but it is giving silly result.&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-javascript"&gt;&lt;CODE&gt;sum(aggr(RangeSum(
           above(sum(aggr(count(distinct Reach),Reach))
            , 0, RowNo()))
,(WeekNumeric,(NUMERIC))))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expecting below output.&lt;/P&gt;
&lt;TABLE width="479px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="162.663px"&gt;&lt;STRONG&gt;Week&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="57.05px"&gt;&lt;STRONG&gt;Reach&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="69.8625px"&gt;&lt;STRONG&gt;Output&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="188.625px"&gt;&lt;STRONG&gt;Expected Output&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="162.663px"&gt;WK of 06 May'24&lt;/TD&gt;
&lt;TD width="57.05px"&gt;119&lt;/TD&gt;
&lt;TD width="69.8625px"&gt;62&lt;/TD&gt;
&lt;TD width="188.625px"&gt;119&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="162.663px"&gt;WK of 13 May'24&lt;/TD&gt;
&lt;TD width="57.05px"&gt;80&lt;/TD&gt;
&lt;TD width="69.8625px"&gt;150&lt;/TD&gt;
&lt;TD width="188.625px"&gt;150&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="162.663px"&gt;WK of 20 May'24&lt;/TD&gt;
&lt;TD width="57.05px"&gt;51&lt;/TD&gt;
&lt;TD width="69.8625px"&gt;170&lt;/TD&gt;
&lt;TD width="188.625px"&gt;170&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="162.663px"&gt;WK of 27 May'24&lt;/TD&gt;
&lt;TD width="57.05px"&gt;25&lt;/TD&gt;
&lt;TD width="69.8625px"&gt;185&lt;/TD&gt;
&lt;TD width="188.625px"&gt;185&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Mon, 11 Nov 2024 08:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2491974#M102128</guid>
      <dc:creator>Daya_Acc</dc:creator>
      <dc:date>2024-11-11T08:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the distinct values under cumulative sum</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2491983#M102129</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/316512"&gt;@Daya_Acc&lt;/a&gt;&amp;nbsp; This expression should work. I am not sure why you need 62 for first week as actual expression itself giving 119. please share a sample app to look at&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 09:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2491983#M102129</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-11-11T09:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the distinct values under cumulative sum</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2492000#M102132</link>
      <description>&lt;P&gt;Please see the expected output column.&lt;/P&gt;
&lt;P&gt;I don't need 62, it should be 119 as it is 1st week.&amp;nbsp;The Reach column itself is a distinct weekly value, so I'm expecting 1st week to be the same number (119). But now it is giving 62 for 1st week which doesn't look right.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 10:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-show-the-distinct-values-under-cumulative-sum/m-p/2492000#M102132</guid>
      <dc:creator>Daya_Acc</dc:creator>
      <dc:date>2024-11-11T10:01:27Z</dc:date>
    </item>
  </channel>
</rss>

