<?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: Sum last 2 months in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-last-2-months/m-p/1506217#M36919</link>
    <description>&lt;P&gt;Try this expression&lt;/P&gt;&lt;PRE&gt;=If(GetCurrentField([Group]) = 'Month',
RangeSum(Above(Sum(values), 0, 2)),
RangeSum(FirstSortedValue(values, -date), FirstSortedValue(values, -date, 2)))&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Nov 2018 13:04:33 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-11-14T13:04:33Z</dc:date>
    <item>
      <title>Sum last 2 months</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-last-2-months/m-p/1506197#M36917</link>
      <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;I have one question how I should sum the last 2 months when I have a date field - group (Year, Quarter, Month) as a dimension. even I change de view I want the calc remains. thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 446px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155i7863E325A15A5060/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&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 21:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-last-2-months/m-p/1506197#M36917</guid>
      <dc:creator>paredlx2</dc:creator>
      <dc:date>2024-11-16T21:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sum last 2 months</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-last-2-months/m-p/1506205#M36918</link>
      <description>&lt;P&gt;Use Set Analysis and the field with the lowest level of detail, in this case, the date, so that the filters or range you define in your set analysis expression remain valid for any dimension&amp;nbsp;that represents an aggregated level (month, year) of the filtered field (date). This post contains a pdf document (&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Set-Analysis-syntaxes-examples/ta-p/1491810" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Set-Analysis-syntaxes-examples/ta-p/1491810&lt;/A&gt;) that is a good guide to learn set analysis and there are plenty of examples of how to achieve rolling periods using set analysis here in the community.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-last-2-months/m-p/1506205#M36918</guid>
      <dc:creator>Carlos_Reyes</dc:creator>
      <dc:date>2018-11-14T13:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum last 2 months</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-last-2-months/m-p/1506217#M36919</link>
      <description>&lt;P&gt;Try this expression&lt;/P&gt;&lt;PRE&gt;=If(GetCurrentField([Group]) = 'Month',
RangeSum(Above(Sum(values), 0, 2)),
RangeSum(FirstSortedValue(values, -date), FirstSortedValue(values, -date, 2)))&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-last-2-months/m-p/1506217#M36919</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-14T13:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sum last 2 months</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-last-2-months/m-p/1514561#M36920</link>
      <description>Hi Stalwar1 thanks for your response. already have a couple of days trying to implement your solution but I can't do this works. please can you help me with this.</description>
      <pubDate>Fri, 30 Nov 2018 02:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-last-2-months/m-p/1514561#M36920</guid>
      <dc:creator>paredlx2</dc:creator>
      <dc:date>2018-11-30T02:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum last 2 months</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-last-2-months/m-p/1514799#M36921</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;=If(GetCurrentField([Time_DOH]) = 'Month',
RangeSum(Above(Sum(Sales), 0, 2)),
RangeSum(FirstSortedValue(Aggr(Sum(Sales), Full_date, $(='[' &amp;amp; GetCurrentField([Time_DOH]) &amp;amp; ']')), -Aggr(Full_date, Full_date, $(='[' &amp;amp; GetCurrentField([Time_DOH]) &amp;amp; ']'))),
		 FirstSortedValue(Aggr(Sum(Sales), Full_date, $(='[' &amp;amp; GetCurrentField([Time_DOH]) &amp;amp; ']')), -Aggr(Full_date, Full_date, $(='[' &amp;amp; GetCurrentField([Time_DOH]) &amp;amp; ']')), 2))) &lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Nov 2018 12:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-last-2-months/m-p/1514799#M36921</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-30T12:10:53Z</dc:date>
    </item>
  </channel>
</rss>

