<?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: Summing X months before given month in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1649093#M151663</link>
    <description>&lt;P&gt;That is an elegant solution, but what if I have many entries per month ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to check what my data looks like, I'll see if I can make that can work.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2019 12:58:51 GMT</pubDate>
    <dc:creator>Saryk</dc:creator>
    <dc:date>2019-11-20T12:58:51Z</dc:date>
    <item>
      <title>Summing X months before given month</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1649030#M151657</link>
      <description>&lt;P&gt;I have a line chart on Excel that represents the sum of all sales of months (X-2) + (X-1) + (X) for every month X.&lt;/P&gt;&lt;P&gt;So dimension is months, and for April the line would show the sum of February, March and April ; and for May it would sum March, April and May.&lt;/P&gt;&lt;P&gt;I can't wrap my head around a formula that would work on Qlik Sense, and I would appreciate a bit of help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I imagine the pseudocode would be "Sum(sales) if (month &amp;gt;= month - 2 and month &amp;lt;= month)", but I can't make the difference between the month dimension and the month value.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 11:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1649030#M151657</guid>
      <dc:creator>Saryk</dc:creator>
      <dc:date>2019-11-20T11:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Summing X months before given month</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1649070#M151660</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use &lt;EM&gt;=&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;RangeSum(Above(Sales,0,$(X)))&lt;/EM&gt; with X being the number of months you want to sum. Make sure to sort the chart by month dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is a nice example for&amp;nbsp;&lt;EM&gt;RangeSum(Above(...))&lt;/EM&gt; on the help site at&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/RangeFunctions/rangesum.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/RangeFunctions/rangesum.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Vu Nguyen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 12:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1649070#M151660</guid>
      <dc:creator>vunguyenq89</dc:creator>
      <dc:date>2019-11-20T12:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Summing X months before given month</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1649093#M151663</link>
      <description>&lt;P&gt;That is an elegant solution, but what if I have many entries per month ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to check what my data looks like, I'll see if I can make that can work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 12:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1649093#M151663</guid>
      <dc:creator>Saryk</dc:creator>
      <dc:date>2019-11-20T12:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Summing X months before given month</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1649195#M151682</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have many entries per month, the expression should be &lt;EM&gt;=RangeSum(Above(Sum(Sales),0,$(X)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vu Nguyen&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 14:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1649195#M151682</guid>
      <dc:creator>vunguyenq89</dc:creator>
      <dc:date>2019-11-20T14:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Summing X months before given month</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1650015#M151853</link>
      <description>&lt;P&gt;This doesn't work when you apply filter though. If I want an average of the data over the week X, X-1 and X-2, I'd have&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RangeAvg(Above(Sum(data), 0, 3))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then order by week.&lt;/P&gt;&lt;P&gt;Thing is, as soon as I select a week for instance, that value changes since there are no other weeks to average from.&lt;/P&gt;&lt;P&gt;I'd like this value to not change ; if I have this data (blue is loaded and orange is calculated in graph)&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#3366FF"&gt;Week&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#3366FF"&gt;Data&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF6600"&gt;Last 3 weeks average&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#3366FF"&gt;2&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#3366FF"&gt;4&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF6600"&gt;4&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#3366FF"&gt;3&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#3366FF"&gt;5&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF6600"&gt;4,5&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#3366FF"&gt;4&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#3366FF"&gt;3&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF6600"&gt;4&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#3366FF"&gt;5&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#3366FF"&gt;7&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF6600"&gt;5&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;and I select week 5, the average will jump from 5 to 7.&lt;/P&gt;&lt;P&gt;Should I make a data table and create the graph from there ?&lt;/P&gt;&lt;P&gt;Should I insert the formula in the data loading ?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 10:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1650015#M151853</guid>
      <dc:creator>Saryk</dc:creator>
      <dc:date>2019-11-22T10:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Summing X months before given month</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1650148#M151879</link>
      <description>&lt;P&gt;Then you can add Set Analysis to clear all selection in&amp;nbsp;&lt;EM&gt;Week&lt;/EM&gt;&amp;nbsp; before calculating the expression. For example&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;=RangeAvg(Above(Sum({&amp;lt;Week=&amp;gt;}Data), 0, 3))&lt;/LI-CODE&gt;&lt;P&gt;With this Set Analysis, the expression will not response to selections in &lt;EM&gt;Week&lt;/EM&gt;, but still responses to selections in other fields.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 14:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1650148#M151879</guid>
      <dc:creator>vunguyenq89</dc:creator>
      <dc:date>2019-11-22T14:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Summing X months before given month</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1650620#M151977</link>
      <description>&lt;P&gt;Yes, this works perfectly fine !&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 12:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1650620#M151977</guid>
      <dc:creator>Saryk</dc:creator>
      <dc:date>2019-11-25T12:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Summing X months before given month</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1650622#M151978</link>
      <description>&lt;P&gt;Since I have multiple dimensions I can switch between, what would the grammar be to exclude the filtering of "Weeks", "Months" and "Years" ?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 12:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1650622#M151978</guid>
      <dc:creator>Saryk</dc:creator>
      <dc:date>2019-11-25T12:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Summing X months before given month</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1650630#M151982</link>
      <description>&lt;P&gt;Hi, it would be&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;=RangeAvg(Above(Sum({&amp;lt;Week=,Month=,Year=&amp;gt;}Data), 0, 3))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Nov 2019 12:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1650630#M151982</guid>
      <dc:creator>vunguyenq89</dc:creator>
      <dc:date>2019-11-25T12:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Summing X months before given month</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1650633#M151985</link>
      <description>&lt;P&gt;Amazing, thanks again !&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 12:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/1650633#M151985</guid>
      <dc:creator>Saryk</dc:creator>
      <dc:date>2019-11-25T12:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Summing X months before given month</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/2094525#M234046</link>
      <description>&lt;P&gt;I like the idea of using the Above function because I can let the user to choose the offset and the count using Input Variables (comparing to "As-Of" table), but is there a way to calculate the rolling X months but yet to display in the table chart only a specific month?&lt;/P&gt;
&lt;P&gt;for example,&amp;nbsp;if my data is:&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#3366FF"&gt;Week&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT color="#3366FF"&gt;Data&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT color="#FF6600"&gt;Last 3 weeks average&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#3366FF"&gt;2&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT color="#3366FF"&gt;4&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT color="#FF6600"&gt;4&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#3366FF"&gt;3&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT color="#3366FF"&gt;5&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT color="#FF6600"&gt;4,5&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#3366FF"&gt;4&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT color="#3366FF"&gt;3&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT color="#FF6600"&gt;4&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#3366FF"&gt;5&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT color="#3366FF"&gt;7&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT color="#FF6600"&gt;5&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and now I want to select Week5, i still want to see:&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="47.3438px" height="25px"&gt;&lt;FONT color="#3366FF"&gt;Week&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="41.8125px" height="25px"&gt;&lt;FONT color="#3366FF"&gt;Data&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="150.453px" height="25px"&gt;&lt;FONT color="#FF6600"&gt;Last 3 weeks average&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="47.3438px" height="25px"&gt;&lt;FONT color="#3366FF"&gt;5&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="41.8125px" height="25px"&gt;&lt;FONT color="#3366FF"&gt;7&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="150.453px" height="25px"&gt;&lt;FONT color="#FF6600"&gt;5&lt;/FONT&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 can only assume that in this case Above() won't work, but is there other way to achieve it and still have it dynamic for the user to place the offset and the count for the rolling average?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Dror&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 17:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/2094525#M234046</guid>
      <dc:creator>drorelkouby</dc:creator>
      <dc:date>2023-07-17T17:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Summing X months before given month</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/2095021#M234127</link>
      <description>&lt;P&gt;I found the answer to my question using this amazing post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Design/Accumulative-Sums/ba-p/1468010" target="_blank"&gt;https://community.qlik.com/t5/Design/Accumulative-Sums/ba-p/1468010&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 18:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Summing-X-months-before-given-month/m-p/2095021#M234127</guid>
      <dc:creator>drorelkouby</dc:creator>
      <dc:date>2023-07-18T18:31:07Z</dc:date>
    </item>
  </channel>
</rss>

