<?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: Show Data for last 52 weeks from current date Qliksense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Show-Data-for-last-52-weeks-from-current-date-Qliksense/m-p/2029680#M84820</link>
    <description>&lt;P&gt;use the date field in your calculations as below to restrict the calculation period&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Last 52 Weeks&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;&lt;SPAN&gt;REPORT_DATE&lt;/SPAN&gt;={"&amp;gt;=$(=WeekStart(Max(&lt;SPAN&gt;REPORT_DATE&lt;/SPAN&gt;),-52))&amp;lt;=$(=Max(&lt;SPAN&gt;REPORT_DATE&lt;/SPAN&gt;))"}&amp;gt;}SomeMeasure)&lt;/STRONG&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 06:54:14 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2023-01-25T06:54:14Z</dc:date>
    <item>
      <title>Show Data for last 52 weeks from current date Qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Data-for-last-52-weeks-from-current-date-Qliksense/m-p/2028179#M84719</link>
      <description>&lt;P&gt;Hello All ,&lt;/P&gt;
&lt;P&gt;I have below data set :-&lt;/P&gt;
&lt;P&gt;Dimension -'Week' &amp;amp; chr(10) &amp;amp; Week(Date)&lt;/P&gt;
&lt;P&gt;Dimension -=If(WildMatch(Date, '*' &amp;amp; Year(Today())), DATE_MON)&lt;/P&gt;
&lt;P&gt;Dimension - LOB&lt;/P&gt;
&lt;P&gt;Measure -&amp;nbsp;sum({&amp;lt;Monday_flag={1}, Year_trend={'$(=Max(Year_trend))'}&amp;gt;}TREND_VOL)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1674206798837.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98499iEECC2E31ABA24342/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_0-1674206798837.png" alt="Aspiring_Developer_0-1674206798837.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My requirement is to show data for last 52 weeks starting from current date but as the new year started it is only showing the data for a single month of Jan 2023.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And we have created below flags to show the opening number of every week&amp;nbsp; i.e Monday :-&lt;/P&gt;
&lt;P&gt;If(WeekDay(REPORT_DATE)='Mon' or Day(REPORT_DATE)=1, REPORT_DATE) as REPORT_DATE_MON&lt;/P&gt;
&lt;P&gt;if(weekday(REPORT_DATE)='Mon' or Day(REPORT_DATE)=1, 1,0) as Monday_flag,&lt;/P&gt;
&lt;P&gt;How Can I show the data for last 52 weeks considering the current month and year as well so that next time when the year changes it should not hamper the results?&lt;/P&gt;
&lt;P&gt;Thanks in advance&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>Fri, 20 Jan 2023 09:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Data-for-last-52-weeks-from-current-date-Qliksense/m-p/2028179#M84719</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2023-01-20T09:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Show Data for last 52 weeks from current date Qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Data-for-last-52-weeks-from-current-date-Qliksense/m-p/2028260#M84727</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;Can anyone please help me on this one ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 12:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Data-for-last-52-weeks-from-current-date-Qliksense/m-p/2028260#M84727</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2023-01-20T12:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Show Data for last 52 weeks from current date Qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Data-for-last-52-weeks-from-current-date-Qliksense/m-p/2028664#M84760</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;Can anyone please help me on this one ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 08:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Data-for-last-52-weeks-from-current-date-Qliksense/m-p/2028664#M84760</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2023-01-23T08:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Show Data for last 52 weeks from current date Qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Data-for-last-52-weeks-from-current-date-Qliksense/m-p/2029680#M84820</link>
      <description>&lt;P&gt;use the date field in your calculations as below to restrict the calculation period&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Last 52 Weeks&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;&lt;SPAN&gt;REPORT_DATE&lt;/SPAN&gt;={"&amp;gt;=$(=WeekStart(Max(&lt;SPAN&gt;REPORT_DATE&lt;/SPAN&gt;),-52))&amp;lt;=$(=Max(&lt;SPAN&gt;REPORT_DATE&lt;/SPAN&gt;))"}&amp;gt;}SomeMeasure)&lt;/STRONG&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 06:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Data-for-last-52-weeks-from-current-date-Qliksense/m-p/2029680#M84820</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-01-25T06:54:14Z</dc:date>
    </item>
  </channel>
</rss>

