<?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 Rolling Weeks over 2 different years in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rolling-Weeks-over-2-different-years/m-p/1531653#M38296</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to show the last 6 rolling week, but they are over 2 different year:&lt;/P&gt;&lt;P&gt;2018:49,50,51,52&lt;/P&gt;&lt;P&gt;2019: 1,2&lt;/P&gt;&lt;P&gt;For my rolling 12 months overlapping 2 years, iIuse this variable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vCurrMonthID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=((&lt;STRONG&gt;&lt;EM&gt;$(vCurrYear)&lt;/EM&gt;&lt;/STRONG&gt;-1)*12)+&lt;STRONG&gt;&lt;EM&gt;$(vCurrMonth) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;$vCurrYear=2019&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;vCurrMonth=1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And it works. But I can't seem to figure out how to make it work for weeks&lt;/P&gt;&lt;P&gt;For weeks, i would like to where&amp;nbsp;&lt;STRONG&gt;vCurrWeekID&amp;nbsp;&lt;/STRONG&gt;would work like the month variable, but i don't how to write it.&lt;/P&gt;&lt;P&gt;I tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vCurrWeekID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=((&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(vCurrYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;-1)*52)+&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(vCurrWeek)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But it does not work.&lt;/P&gt;&lt;P&gt;Please, can you help me figure this out ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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:35:08 GMT</pubDate>
    <dc:creator>maudifer</dc:creator>
    <dc:date>2024-11-16T21:35:08Z</dc:date>
    <item>
      <title>Rolling Weeks over 2 different years</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-Weeks-over-2-different-years/m-p/1531653#M38296</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to show the last 6 rolling week, but they are over 2 different year:&lt;/P&gt;&lt;P&gt;2018:49,50,51,52&lt;/P&gt;&lt;P&gt;2019: 1,2&lt;/P&gt;&lt;P&gt;For my rolling 12 months overlapping 2 years, iIuse this variable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vCurrMonthID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=((&lt;STRONG&gt;&lt;EM&gt;$(vCurrYear)&lt;/EM&gt;&lt;/STRONG&gt;-1)*12)+&lt;STRONG&gt;&lt;EM&gt;$(vCurrMonth) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;$vCurrYear=2019&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;vCurrMonth=1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And it works. But I can't seem to figure out how to make it work for weeks&lt;/P&gt;&lt;P&gt;For weeks, i would like to where&amp;nbsp;&lt;STRONG&gt;vCurrWeekID&amp;nbsp;&lt;/STRONG&gt;would work like the month variable, but i don't how to write it.&lt;/P&gt;&lt;P&gt;I tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vCurrWeekID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=((&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(vCurrYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;-1)*52)+&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(vCurrWeek)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But it does not work.&lt;/P&gt;&lt;P&gt;Please, can you help me figure this out ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-Weeks-over-2-different-years/m-p/1531653#M38296</guid>
      <dc:creator>maudifer</dc:creator>
      <dc:date>2024-11-16T21:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Weeks over 2 different years</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-Weeks-over-2-different-years/m-p/1531666#M38302</link>
      <description>You may want to try AsOf table&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Calculating-rolling-n-period-totals-averages-or-other/ta-p/1483033" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Calculating-rolling-n-period-totals-averages-or-other/ta-p/1483033&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Check following link&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Set-Analysis-for-Rolling-Periods/ta-p/1496283" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Set-Analysis-for-Rolling-Periods/ta-p/1496283&lt;/A&gt;</description>
      <pubDate>Thu, 17 Jan 2019 15:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-Weeks-over-2-different-years/m-p/1531666#M38302</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2019-01-17T15:56:02Z</dc:date>
    </item>
  </channel>
</rss>

