<?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: Rolling 30 Day Sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-30-Day-Sum/m-p/1693457#M450786</link>
    <description>&lt;P&gt;If Ruben's post got you what you needed, please be sure to close the thread by using the Accept as Solution button on his post.&amp;nbsp; This gives him credit for the help and lets other Members know it worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only additional thing I have to try to help is the following Design Blog post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2020 20:31:32 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-04-14T20:31:32Z</dc:date>
    <item>
      <title>Rolling 30 Day Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-30-Day-Sum/m-p/1686701#M450430</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a situation where I have sales for at a daily level starting from Jan 2020 to date at an SKU level. I want to show in the chart the months and the sales against it. The only condition is that it should always be the next 30 days sales.&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Jan ( 1st as nothing is selected)- Jan 30th&lt;/STRONG&gt; : 2000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Feb(1st as nothing is selected)- Feb 29th&lt;/STRONG&gt; :4000&lt;/P&gt;&lt;P&gt;and so on. As soon a user selects a day the bracket of 30 days should shift&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The user selects 15 as a day:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Jan ( 15th)- Feb 15thth&lt;/STRONG&gt; : 7000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Feb(15th)- Mar 16th&lt;/STRONG&gt; :5000&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;In the below example I have selected 19th March but I get April (as the bracket is from 19th Mar - 19th Apr) also a month in the month which I don't want. I want the whole sum of 436932 in Mar bracket&lt;/P&gt;&lt;P&gt;&amp;nbsp;I used the below set analysis&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;TRENDDATEMONTH={"&amp;gt;$(=$(vL3MEndNew))&amp;lt;=$(=$(vRollingDays))"}&amp;gt;}[DAILY_SALES(Cases)])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vL3MEndNew: 19TH March&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vRollingDays: 19th+30 days&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can it be done using set analysis or do I have to write it in script??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-30-Day-Sum/m-p/1686701#M450430</guid>
      <dc:creator>rahulsingh12</dc:creator>
      <dc:date>2024-11-16T18:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 30 Day Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-30-Day-Sum/m-p/1686741#M450431</link>
      <description>&lt;P&gt;Hi, I'm not sure of what you want and what are you getting.&lt;/P&gt;&lt;P&gt;Maybe you need to if¡gnore selections in selected month so only set analysis applies?&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TRENDDATEMONTH={"&amp;gt;$(=$(vL3MEndNew))&amp;lt;=$(=$(vRollingDays))"}, &lt;STRONG&gt;MonthFieldToIgnore&amp;gt;&lt;/STRONG&gt;}[DAILY_SALES(Cases)])&lt;/P&gt;&lt;P&gt;Also, I would try to make the variable to return the values I want to usetoa ovid the double $(, like setting the content of&amp;nbsp;vRollingDays variable to: =$(vL3MEndNew)+30&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 19:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-30-Day-Sum/m-p/1686741#M450431</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-03-22T19:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 30 Day Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-30-Day-Sum/m-p/1693457#M450786</link>
      <description>&lt;P&gt;If Ruben's post got you what you needed, please be sure to close the thread by using the Accept as Solution button on his post.&amp;nbsp; This gives him credit for the help and lets other Members know it worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only additional thing I have to try to help is the following Design Blog post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 20:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-30-Day-Sum/m-p/1693457#M450786</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-04-14T20:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 30 Day Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-30-Day-Sum/m-p/1694587#M450847</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I suppose that you are using 'Month' as dimesion value, so I would add a calculated dimension and then I would create a single expression.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Dimension:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=aggr(only({&amp;lt;TRENDDATEMONTH={"&amp;gt;$(=(vL3MEndNew))&amp;lt;=$(=(vRollingDays))"}&amp;gt;} YourMonthDimension),YourMonthDimension)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(DAILY_SALES)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I normally use it like that. The difference is that in my case I always create a variable 'vRolling' and I use an input box to select the number of days, month, years that I want to select backwards or forwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example considering the number of 'vRollingMonth' backwards "selected in an input box" from month(today)&lt;/P&gt;&lt;P&gt;=aggr(only({&amp;lt;DATE_OPERATION={"&amp;gt;=$(=monthstart(today(),-vRollingMonth))&amp;lt;=$(=monthend(today()))"}&amp;gt;}ID),ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that works for you.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Apr 2020 13:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-30-Day-Sum/m-p/1694587#M450847</guid>
      <dc:creator>wale_martins</dc:creator>
      <dc:date>2020-04-18T13:33:28Z</dc:date>
    </item>
  </channel>
</rss>

