<?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/1657002#M730145</link>
    <description>&lt;P&gt;Basis the shared data,if you select Period as CY_Roll_12m then your current month value comes as 50.43 and Last year 53.75&lt;/P&gt;&lt;P&gt;If you select&amp;nbsp;Period as LY_Roll_12m then your current month value comes as 53.75 and Last year 00.00&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 11:21:24 GMT</pubDate>
    <dc:creator>khan_imran</dc:creator>
    <dc:date>2019-12-12T11:21:24Z</dc:date>
    <item>
      <title>Rolling and ytd calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1656867#M730140</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to find rolling and YTD revenue. rolling month starts from september and ends on august. I have two years of data sep-2019 to aug-2018. i have a text object where current year and last revenue will be displayed. so, when i select rolling in the filter, in the text object revenue should displayed as currrent year rolling revenue and last year rolling revenue.&lt;/P&gt;&lt;P&gt;when i'm using the below code to get revenue, the current year revenue is coming up to be zero and last year revenue is getting switched with current year revenue. Attaching the screenshot of the dashboard for your reference.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;='Current Year:'&amp;amp; Num(Sum({&amp;lt;[week] = {"&amp;gt;=$(=MakeDate(Year(Today()),9,1) )&amp;lt;=$(=MakeDate(Year(Today())+1,8,30) )"}&amp;gt; } NET_SLS_AMT/1000000),'##.00')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;amp; ' Last Year:'&amp;amp;Num(Sum({&amp;lt;[week] = {"&amp;gt;=$(=MakeDate(Year(Today())-1,9,1) )&amp;lt;=$(=MakeDate(Year(Today()),8,30) )"}&amp;gt; } NET_SLS_AMT/1000000),'##.00')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And when i tried changing the code with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;='Current Year:'&amp;amp; Num(Sum({&amp;lt;[week] = {"&amp;gt;=$(=MakeDate(Year(Today()&lt;/SPAN&gt;&lt;STRONG&gt;-1&lt;/STRONG&gt;&lt;SPAN&gt;),9,1) )&amp;lt;=$(=MakeDate(Year(Today(&lt;/SPAN&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN&gt;,8,30) )"}&amp;gt; } NET_SLS_AMT/1000000),'##.00')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;amp; ' Last Year:'&amp;amp;Num(Sum({&amp;lt;[week] = {"&amp;gt;=$(=MakeDate(Year(Today())&lt;/SPAN&gt;&lt;STRONG&gt;-2&lt;/STRONG&gt;&lt;SPAN&gt;,9,1) )&amp;lt;=$(=MakeDate(Year(Today()&lt;/SPAN&gt;&lt;STRONG&gt;-1&lt;/STRONG&gt;&lt;SPAN&gt;),8,30) )"}&amp;gt; } NET_SLS_AMT/1000000),'##.00')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With the above formula, rolling current year and rolling last year values are coming out to be same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PFA of sample Data and screenshot&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25399iABBC794DDE6F2147/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&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/1656867#M730140</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/1656869#M730141</link>
      <description>&lt;P&gt;Sample data&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 06:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1656869#M730141</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-12T06:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and ytd calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1656978#M730142</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the solution to your problem.&lt;/P&gt;&lt;P&gt;If your query is resolved then Mark it as Solution.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 10:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1656978#M730142</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2019-12-12T10:43: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/1656991#M730143</link>
      <description>&lt;P&gt;hey, thanks a ton for your solution. current year data is matching, but for the last the revnue is suming up for 2 years.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 11:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1656991#M730143</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-12T11:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and ytd calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657002#M730145</link>
      <description>&lt;P&gt;Basis the shared data,if you select Period as CY_Roll_12m then your current month value comes as 50.43 and Last year 53.75&lt;/P&gt;&lt;P&gt;If you select&amp;nbsp;Period as LY_Roll_12m then your current month value comes as 53.75 and Last year 00.00&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 11:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657002#M730145</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2019-12-12T11:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and ytd calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657005#M730147</link>
      <description>&lt;P&gt;attahment of dashboard. after using&amp;nbsp; the above code&amp;nbsp;&lt;/P&gt;&lt;P&gt;='Current Year:'&amp;amp; Num(Sum({&amp;lt;week1 = {"&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxdate)"}&amp;gt; } NET_SLS_AMT/1000000),'##.00')&lt;BR /&gt;&amp;amp; ' Last Year:'&amp;amp;num((Sum({&amp;lt;[week] = {"&amp;gt;=$(vRollingStart)&amp;lt;=$(vRollingEnd)"},Period=&amp;gt; } NET_SLS_AMT/1000000)&lt;BR /&gt;-&lt;BR /&gt;Sum({&amp;lt;[week] = {"&amp;gt;=$(vRollingStart)&amp;lt;=$(vRollingEnd)"},Period={'*YTD*'},Period= {'LYTD'}&amp;gt; } NET_SLS_AMT/1000000)),'##.00')&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25416i66FC862EAC83C71A/image-size/large?v=v2&amp;amp;px=999" role="button" title="p.png" alt="p.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 11:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657005#M730147</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-12T11:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and ytd calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657034#M730149</link>
      <description>&lt;P&gt;Are you using the same dataset? if not then given me all entire data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Dec 2019 12:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657034#M730149</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2019-12-12T12:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and ytd calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657040#M730150</link>
      <description>&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;dataset and qlickview&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 12:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657040#M730150</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-12T12:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and ytd calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657050#M730154</link>
      <description>&lt;P&gt;QVW file&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 12:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657050#M730154</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-12T12:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and ytd calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657068#M730156</link>
      <description>&lt;P&gt;Here is the application with Solution. you did not add the variable.&lt;/P&gt;&lt;P&gt;If this resolved the accept this as solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran K&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657068#M730156</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2019-12-12T13:02: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/1657075#M730157</link>
      <description>&lt;P&gt;Hello sir,&lt;/P&gt;&lt;P&gt;Thank you for helping me out. PFA, we can see the rolling last year revenue is coming out to be 112.72 , which should be 53.74 and rolling current year should be 50.43.&lt;/P&gt;&lt;P&gt;I'm hoping a text obejct, where current year rolling,last year rolling,current year ytd and last year ytd gets displayed. when i select options from view and period.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25427i1C75AF1B83492C07/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657075#M730157</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-12T13:20: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/1657086#M730158</link>
      <description>&lt;P&gt;&amp;nbsp;I guess some date formatting issue is at your end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again attaching the screenshot &amp;amp; App for you.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LY Selection" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25429iA70CB204A4A59BDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pic3.jpg" alt="LY Selection" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;LY Selection&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cy Selection" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25428i7EAB5D28A34C79A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pic2.jpg" alt="Cy Selection" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Cy Selection&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1657086#M730158</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2019-12-12T13:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling and ytd calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1658811#M730161</link>
      <description>&lt;P&gt;this code is working only for rolling not for ytd. can you please help me out on this, it will be a great help&lt;/P&gt;&lt;P&gt;='Current Year:'&amp;amp; Num((Sum({&amp;lt;week = {"&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxdate)"}&amp;gt;} NET_SLS_AMT)/1000000),'##.00')&lt;BR /&gt;&amp;amp; ' Last Year:'&amp;amp;num((((Sum({&amp;lt;week = {"&amp;gt;=$(vRollingStart)&amp;lt;=$(vRollingEnd)"},Period=&amp;gt;} NET_SLS_AMT)/1000000)&lt;BR /&gt;-&lt;BR /&gt;Sum({&amp;lt;week = {"&amp;gt;=$(vRollingStart)&amp;lt;=$(vRollingEnd)"},Period= {'LYTD'}&amp;gt; } NET_SLS_AMT)/1000000)),'##.00')&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 07:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1658811#M730161</guid>
      <dc:creator>saichawan</dc:creator>
      <dc:date>2019-12-18T07:16: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/1659135#M730162</link>
      <description>&lt;P&gt;Here are some Design Blog posts that may be helpful for things:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Fiscal-Year/ba-p/1472103" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Fiscal-Year/ba-p/1472103&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Accumulations/ba-p/1466581" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Accumulations/ba-p/1466581&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is the base URL for the Design Blog area in case you want to do some further searching yourself:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Sorry I do not have anything better, my post will also kick things back up in the list, so someone else may have another look and offer up something direct, but no promises.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 19:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-and-ytd-calculation/m-p/1659135#M730162</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-18T19:20:47Z</dc:date>
    </item>
  </channel>
</rss>

