<?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: Hide Dates used to calculate running total in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758487#M10744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again! Sense requires the GetFieldSelection() instead of getcurrentfield() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created this with your suggestion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//IF&lt;/P&gt;&lt;P&gt; if(isnull(GetFieldSelections([YEAR])), &lt;/P&gt;&lt;P&gt; //THEN&lt;/P&gt;&lt;P&gt; sum(aggr(rangesum(above(sum({&amp;lt;MONTH=, DATE=, YEAR=&amp;gt;}BALANCE),0,ROWNO())),YEAR)), &lt;/P&gt;&lt;P&gt; //ELSE&lt;/P&gt;&lt;P&gt; if(isnull(GetFieldSelections([MONTH])), &lt;/P&gt;&lt;P&gt; //THEN&lt;/P&gt;&lt;P&gt; sum(aggr(rangesum(above(sum({&amp;lt;MONTH=, DATE=, YEAR=&amp;gt;}BALANCE),0,ROWNO())), MONTH)),&lt;/P&gt;&lt;P&gt; //ELSE&lt;/P&gt;&lt;P&gt; sum(aggr(rangesum(above(sum({&amp;lt;MONTH=, DATE=, YEAR=&amp;gt;}BALANCE),0,ROWNO())), DATE))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2015 22:23:08 GMT</pubDate>
    <dc:creator>hvfalcao</dc:creator>
    <dc:date>2015-01-28T22:23:08Z</dc:date>
    <item>
      <title>Hide Dates used to calculate running total</title>
      <link>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758482#M10739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m evaluating Qlik Sense, so I´m new to this... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is any way, with expressions, to use some field for calculation even if I don´t select it in a filter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m using this to get the running balance of a bank account:&lt;/P&gt;&lt;P&gt;Total Balance: RANGESUM(ABOVE(SUM({$&amp;lt;ACCOUNT = P(ACCOUNT)&amp;gt;} BALANCE),0,ROWNO()))&lt;/P&gt;&lt;P&gt;This is what I´ve got (the total balance is OK so far):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="bal1.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74903_bal1.png" style="height: 398px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But if I deselect the date 02/12/2002, the total balance got wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="bal2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/74904_bal2.png" style="height: 410px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use {1} in the formula it will bring me all dates, and I dont want that: RANGESUM(ABOVE(SUM({1&amp;lt;ACCOUNT = P(ACCOUNT)&amp;gt;} BALANCE),0,ROWNO()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="BAL3.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/74909_BAL3.png" style="height: 418px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I´m trying to do is to use all dates to calculate the TOTAL BALANCE, but just show the row of the selected dates on the table/graph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758482#M10739</guid>
      <dc:creator>hvfalcao</dc:creator>
      <dc:date>2024-11-16T11:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Dates used to calculate running total</title>
      <link>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758483#M10740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henrique,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use aggr and Rangesum expression together to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&amp;nbsp; sum(aggr(rangesum(above(total sum({&amp;lt;Date=&amp;gt;}Balance),0,3)),Date))&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75561_Capture.PNG" style="height: 137px; width: 620px;" /&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/75562_Capture2.PNG" style="height: 192px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the below link for calculating running total...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this Helps....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu Appu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 02:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758483#M10740</guid>
      <dc:creator>prabhuappu</dc:creator>
      <dc:date>2015-01-17T02:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Dates used to calculate running total</title>
      <link>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758484#M10741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a qvw for better understanding... This expression will work in both Qlikview and Qliksense... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 02:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758484#M10741</guid>
      <dc:creator>prabhuappu</dc:creator>
      <dc:date>2015-01-17T02:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Dates used to calculate running total</title>
      <link>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758485#M10742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi &lt;SPAN&gt;Prabhu&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your help! I could almost achieve what I want with your formula, but instead of 3, I used &lt;SPAN&gt;rowno&lt;/SPAN&gt;().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "sum(aggr(rangesum(above(sum({&amp;lt;YEAR=, MONTH=, DATE=&amp;gt;}BALANCE),0,ROWNO())),DATE))"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I need to SELECT SQL order by DATE asc.... Otherwise it wont work correctly. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;There is only one problem now. &lt;SPAN&gt;I'm&lt;/SPAN&gt; trying to use a hierarchy field (year&amp;gt;month&amp;gt;date). Do you know how to make this dynamic? If in YEAR level, the rangesum should use YEAR, if in MONTH, use MONTH, etc...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 20:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758485#M10742</guid>
      <dc:creator>hvfalcao</dc:creator>
      <dc:date>2015-01-19T20:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Dates used to calculate running total</title>
      <link>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758486#M10743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use getcurrentfield([group name]) function to retrieve the current field of a drill down / cyclic group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a variable using that function. And use that in your expression as $(vGroupname) instead of direct field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of variable you xan use $(=getcurrentfield(grpname)) also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu appu&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 01:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758486#M10743</guid>
      <dc:creator>prabhuappu</dc:creator>
      <dc:date>2015-01-20T01:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Dates used to calculate running total</title>
      <link>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758487#M10744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again! Sense requires the GetFieldSelection() instead of getcurrentfield() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created this with your suggestion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//IF&lt;/P&gt;&lt;P&gt; if(isnull(GetFieldSelections([YEAR])), &lt;/P&gt;&lt;P&gt; //THEN&lt;/P&gt;&lt;P&gt; sum(aggr(rangesum(above(sum({&amp;lt;MONTH=, DATE=, YEAR=&amp;gt;}BALANCE),0,ROWNO())),YEAR)), &lt;/P&gt;&lt;P&gt; //ELSE&lt;/P&gt;&lt;P&gt; if(isnull(GetFieldSelections([MONTH])), &lt;/P&gt;&lt;P&gt; //THEN&lt;/P&gt;&lt;P&gt; sum(aggr(rangesum(above(sum({&amp;lt;MONTH=, DATE=, YEAR=&amp;gt;}BALANCE),0,ROWNO())), MONTH)),&lt;/P&gt;&lt;P&gt; //ELSE&lt;/P&gt;&lt;P&gt; sum(aggr(rangesum(above(sum({&amp;lt;MONTH=, DATE=, YEAR=&amp;gt;}BALANCE),0,ROWNO())), DATE))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 22:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hide-Dates-used-to-calculate-running-total/m-p/758487#M10744</guid>
      <dc:creator>hvfalcao</dc:creator>
      <dc:date>2015-01-28T22:23:08Z</dc:date>
    </item>
  </channel>
</rss>

