<?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 and YTD calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660107#M728799</link>
    <description>&lt;P&gt;yes, correct. 49.11 for the last year&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2019 13:27:46 GMT</pubDate>
    <dc:creator>saichawan</dc:creator>
    <dc:date>2019-12-23T13:27:46Z</dc:date>
    <item>
      <title>Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660017#M728787</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to calculate the rolling and ytd revenue, but not from the month of january to december. i need to do it from September 2017 to aug 2018 and sep 2018 to aug 2019. i'm using below code to ge the output. I have a filter called view in which i have two selection rolling and ytd. if i select rolling then the in the revenue text object the output should be current year rolling and last year revenue, if i select ytd from the view filter, then the revenue text object should de displayed as current year YTD and last year ytd revenue. with the below i'm not getting the desired output, the numbers are not correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;='Current Year:'&amp;amp; Num(Sum({&amp;lt;[Trading Week End Date] = {"&amp;gt;=$(=MakeDate(Year(Today()),9,1) )&amp;lt;=$(=MakeDate(Year(Today())+1,8,1) )"}&amp;gt; }&amp;gt;} NET_SLS_AMT/1000000),'##.00')&amp;amp; ' Last Year:'&amp;amp;Num(Sum({&amp;lt;[Trading Week End Date] = {"&amp;gt;=$(=MakeDate(Year(Today())-1,9,1) )&amp;lt;=$(=MakeDate(Year(Today()),8,1) )"}&amp;gt; } NET_SLS_AMT/1000000),'##.00')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660017#M728787</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660076#M728789</link>
      <description>&lt;P&gt;QVW file&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 12:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660076#M728789</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-23T12:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660087#M728790</link>
      <description>&lt;P&gt;can you please confirm these results.&lt;/P&gt;&lt;P&gt;Between the two dates d1 and d2, which represents the current year, I find 45.89, not 50.4.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 912px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25912i102F4D4A65FA6D8E/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;I kept your formula:&lt;BR /&gt;'Current Year:'&amp;amp; Num((Sum({&amp;lt;week = {"&amp;gt;=$(d1) &amp;lt;=$(d2)"}&amp;gt;} NET_SLS_AMT)/1000000),'##.00')&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 993px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25913i41550B048C9509F7/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;can you give me your feedback on that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 12:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660087#M728790</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-23T12:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660091#M728791</link>
      <description>&lt;P&gt;total revenue os 104, and current year revenue is 50.4 and last year revenue is 53.7. attaching you the dataset&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660091#M728791</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-23T13:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660093#M728792</link>
      <description>&lt;P&gt;Sum(NET_SLS_AMT)/1000000 between&amp;nbsp; 01/09/2018 and 01/08/2019 is 50.4 ?&lt;/P&gt;&lt;P&gt;how'd you find it ?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660093#M728792</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-23T13:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660094#M728793</link>
      <description>&lt;P&gt;In the dataset, there a column called period and if i select&amp;nbsp;CYRoll12m then you see Net_sls_amt as 50.4 sep 2018 to aug 2019 and if i select LYRoll12m then the net_sls_amt is 53.7 sep 2017 to aug 2018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660094#M728793</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-23T13:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660099#M728794</link>
      <description>&lt;P&gt;I can't help you if you don't help me understand.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 767px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25915i4BD5AC498209EB15/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;Sum(NET_SLS_AMT)/1000000 between 01/09/2018 and 01/08/2019 is 45.86 not 50.4 ?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660099#M728794</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-23T13:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660100#M728795</link>
      <description>&lt;P&gt;sorry my bad, yes it is 45.86 i was looking at other dataset not shared one. really sorry for this.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660100#M728795</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-23T13:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660101#M728796</link>
      <description>&lt;P&gt;qvw file&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660101#M728796</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-23T13:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660103#M728797</link>
      <description>&lt;P&gt;haha.&lt;/P&gt;&lt;P&gt;we got the right numbers for current year&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660103#M728797</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-23T13:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660104#M728798</link>
      <description>&lt;P&gt;49.11 for last year ?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660104#M728798</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-23T13:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660107#M728799</link>
      <description>&lt;P&gt;yes, correct. 49.11 for the last year&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:27:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660107#M728799</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-23T13:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660119#M728800</link>
      <description />
      <pubDate>Mon, 23 Dec 2019 13:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660119#M728800</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-23T13:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660125#M728801</link>
      <description>&lt;P&gt;add variables :&lt;/P&gt;&lt;P&gt;d1=Date(Makedate(Year(Max(week))-1,09,01),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;d2=Date(Makedate(Year(Max(week)),08,01),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;d3=Date(Makedate(Year(Max(week))-2,09,01),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;d4=Date(Makedate(Year(Max(week))-1,08,01),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;then change revenue text by&lt;/P&gt;&lt;LI-CODE lang="python"&gt;='Current Year:'&amp;amp; Num((Sum({&amp;lt;week = {"&amp;gt;=$(d1) &amp;lt;=$(d2)"}&amp;gt;} NET_SLS_AMT)/1000000),'##.00')
&amp;amp; ' Last Year:'&amp;amp;num((((Sum({&amp;lt;week = {"&amp;gt;=$(d3)&amp;lt;=$(d4)"},Period=&amp;gt;} NET_SLS_AMT)/1000000)
-
Sum({&amp;lt;week = {"&amp;gt;=$(d3)&amp;lt;=$(d4)"},Period= {'LYTD'}&amp;gt; } NET_SLS_AMT)/1000000)),'##.00')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660125#M728801</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-23T13:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660139#M728802</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;where should i create these variables?&amp;nbsp; a text object&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;d1=Date(Makedate(Year(Max(week))-1,09,01),'DD/MM/YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;d2=Date(Makedate(Year(Max(week)),08,01),'DD/MM/YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;d3=Date(Makedate(Year(Max(week))-2,09,01),'DD/MM/YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;d4=Date(Makedate(Year(Max(week))-1,08,01),'DD/MM/YYYY')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660139#M728802</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-23T13:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660146#M728803</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25923iBDDAED9756886DAF/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;then&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 628px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25924i45E15CD4AC85DCD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 14:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660146#M728803</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-23T14:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660160#M728805</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;swap1546@gmail.com is my mail id.&lt;/P&gt;&lt;P&gt;the number for rolling is coming correct, but when i select YTD from view filter the numbers are not correct. attaching you the screenshot.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ytd.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25929iE2218AEFD03072A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="ytd.png" alt="ytd.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 14:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660160#M728805</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-23T14:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660164#M728806</link>
      <description>&lt;P&gt;what are the correct values?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 14:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660164#M728806</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-23T14:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660357#M728807</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks a ton for guiding me to get the desired output. i just have a small problem here. With the below and making variable overview. my YTD last year revenue is coming upto be zero. Can you please through a light on this.&lt;/P&gt;&lt;P&gt;Attaching you the screenshot of the same.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="m.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25974i3448383CB42136B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="m.png" alt="m.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;='Current Year:'&amp;amp; Num((Sum({&amp;lt;week = {"&amp;gt;=$(d1) &amp;lt;=$(d2)"}&amp;gt;} NET_SLS_AMT)/1000000),'##.00')&lt;BR /&gt;&amp;amp; ' Last Year:'&amp;amp;num((((Sum({&amp;lt;week = {"&amp;gt;=$(d3)&amp;lt;=$(d4)"},Period=&amp;gt;} NET_SLS_AMT)/1000000)&lt;BR /&gt;-&lt;BR /&gt;Sum({&amp;lt;week = {"&amp;gt;=$(d3)&amp;lt;=$(d4)"},Period= {'LYTD'}&amp;gt; } NET_SLS_AMT)/1000000)),'##.00')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;d1=Date(Makedate(Year(Max(week))-1,09,01),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;d2=Date(Makedate(Year(Max(week)),08,30),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;d3=Date(Makedate(Year(Max(week))-2,09,01),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;d4=Date(Makedate(Year(Max(week))-1,08,30),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;This will be big help for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 05:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-YTD-calculation/m-p/1660357#M728807</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-24T05:48:57Z</dc:date>
    </item>
  </channel>
</rss>

