<?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 Set Analysis For calculating Last 4 weeks total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794922#M280902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck in writing an expression for calculating the last 4 weeks total customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set like below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71770_1.JPG.jpg" style="max-width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display the chart which shows me week wise total customers. But the total customers must be calculated based on last four weeks. This means result should be &lt;/P&gt;&lt;P&gt;Week 1 - Total Customer=4&lt;/P&gt;&lt;P&gt;Week 2 - Total Customer=11&lt;/P&gt;&lt;P&gt;Week 3 - Total Customer = 18&lt;/P&gt;&lt;P&gt;Week 4 - Total Customer = 25&lt;/P&gt;&lt;P&gt;Week 5 - Total Customer= 28 and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in writing the set expression for this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 08:06:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-21T08:06:24Z</dc:date>
    <item>
      <title>Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794922#M280902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck in writing an expression for calculating the last 4 weeks total customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set like below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71770_1.JPG.jpg" style="max-width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display the chart which shows me week wise total customers. But the total customers must be calculated based on last four weeks. This means result should be &lt;/P&gt;&lt;P&gt;Week 1 - Total Customer=4&lt;/P&gt;&lt;P&gt;Week 2 - Total Customer=11&lt;/P&gt;&lt;P&gt;Week 3 - Total Customer = 18&lt;/P&gt;&lt;P&gt;Week 4 - Total Customer = 25&lt;/P&gt;&lt;P&gt;Week 5 - Total Customer= 28 and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in writing the set expression for this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 08:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794922#M280902</guid>
      <dc:creator />
      <dc:date>2014-11-21T08:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794923#M280903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;you can inverse the dimensions order WEEK_IN_YEAR,CAL_YEAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 08:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794923#M280903</guid>
      <dc:creator>marwen_garwachi</dc:creator>
      <dc:date>2014-11-21T08:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794924#M280904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum(Customer)+above(sum(Customer)) in Expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 08:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794924#M280904</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-11-21T08:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794925#M280905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using above I think the result will be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Week 1 - Total Customer=0&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Week 2 - Total Customer=11&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Week 3 - Total Customer = 14&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Week 4 - Total Customer = 14&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Week 5 - Total Customer= 14 and so on&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Don't you ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 08:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794925#M280905</guid>
      <dc:creator>marwen_garwachi</dc:creator>
      <dc:date>2014-11-21T08:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794926#M280906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats right Marween. I need last four weeks total not the cumulative total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas for the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 08:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794926#M280906</guid>
      <dc:creator />
      <dc:date>2014-11-21T08:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794927#M280907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried sum with above(sum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.222222328186035px; background-color: #f6f6f6;"&gt;sum(Customer)+above(sum(Customer))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.222222328186035px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.222222328186035px; background-color: #f6f6f6;"&gt;it should give&amp;nbsp; 4&amp;nbsp; if above(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.222222328186035px; background-color: #f6f6f6;"&gt;Customer&lt;/SPAN&gt;)) is 0 ,else usual&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 08:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794927#M280907</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-11-21T08:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794928#M280908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;Cal_Year,&lt;/P&gt;&lt;P&gt;Week_In_Year,&lt;/P&gt;&lt;P&gt;Customers,&lt;/P&gt;&lt;P&gt;MakeWeekDate(Cal_Year, Week_In_Year) AS Date&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in set analysis try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Cal_Year=, Week_In_Year=, Date={'&amp;gt;=$(=WeekStart(Max(Date), -3))&amp;lt;=$(=WeekEnd(Max(Date)))'}&amp;gt;} Customers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 08:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794928#M280908</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-21T08:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794929#M280909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using Straight table, then try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart Properties -&amp;gt; Expression-&amp;gt; Click on Expression-&amp;gt; Select Accumulate checkbox and give 4 steps back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 08:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794929#M280909</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-21T08:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794930#M280910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruchika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your chart use following steps :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension 1 - &lt;STRONG&gt;WEEK_IN_YEAR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Dimension 2 - &lt;STRONG&gt;CAL_YEAR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression -&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Sum(Customers)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check button Full Accumulation in Expression tab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture121.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/71776_Capture121.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 08:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794930#M280910</guid>
      <dc:creator />
      <dc:date>2014-11-21T08:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794931#M280911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you tried to inverse dimensions ? (sum(Customers) in expression and check full accumulation button )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 08:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794931#M280911</guid>
      <dc:creator>marwen_garwachi</dc:creator>
      <dc:date>2014-11-21T08:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794932#M280912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;None of the solution specified is working. Can anybody please suggest any other solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ruchika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 12:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794932#M280912</guid>
      <dc:creator />
      <dc:date>2014-11-21T12:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794933#M280913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ruchika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try RangeSum ( above (total Count (Customers) , 0, 4) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 13:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794933#M280913</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2014-11-21T13:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794934#M280914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruchika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA Qvw application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Regards,&lt;/P&gt;&lt;P&gt;Vishal Waghole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794934#M280914</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2014-11-25T10:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For calculating Last 4 weeks total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794935#M280915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the solution Vishal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the defined solution will only display last four months data. I want to display all the weeks prior to the selected week. So if I select 'Week 15' from listbox, then it should show all weeks data from 'Week 1' to 'Week15'. Also these must be aggregated from prior four weeks data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your example, If I select 'Week 15' then Week 1 to 15 must be displayed with rolling four weeks data for each week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 11:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-calculating-Last-4-weeks-total/m-p/794935#M280915</guid>
      <dc:creator />
      <dc:date>2014-11-25T11:37:23Z</dc:date>
    </item>
  </channel>
</rss>

