<?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: How to calculate total amount of last 6 weeks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177911#M913552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you were supplying the incorrect date format to your set analysis expression. For the sample you can try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date(Max(Date) - 3) &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date)))"},[Month(Date)],[Year(Date)],[Week(Date)] &amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jun 2016 11:10:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-06-01T11:10:28Z</dc:date>
    <item>
      <title>How to calculate total amount of last 6 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177907#M913548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the total amount of last 6 weeks based on selected date, that means that the total amount of last 6 weeks is always be changed when i selected different date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jessica&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jessica lv
attached pls find the test.qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177907#M913548</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate total amount of last 6 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177908#M913549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessical,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[WADAT_IST_Actual Goods Movement Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(=weekStart(Max([WADAT_IST_Actual Goods Movement Date]),-6))&amp;lt;=$(=weekEnd(Max([WADAT_IST_Actual Goods Movement Date])))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;region&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vRegion)&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vMarket)&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Global_Brand_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vBrand)&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Therapy&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vTherapy)&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Local_Product_Description&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vProduct)&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OTIFCounter&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)/&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[WADAT_IST_Actual Goods Movement Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(=WeekStart(Max([WADAT_IST_Actual Goods Movement Date]),-6))&amp;lt;=$(=WeekEnd(Max([WADAT_IST_Actual Goods Movement Date])))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;region&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vRegion)&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vMarket)&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Global_Brand_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vBrand)&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Therapy&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vTherapy)&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Local_Product_Description&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vProduct)&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Lines Ordered]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 12:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177908#M913549</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2016-05-31T12:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate total amount of last 6 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177909#M913550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DateField = {"$(='&amp;gt;=' &amp;amp; Date(Max(DateField) - 42, 'DateFieldFormatHere') &amp;amp; '&amp;lt;=' &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;Date(Max(DateField), 'DateFieldFormatHere')&lt;/SPAN&gt;)"}&lt;SPAN style="color: #ff0000;"&gt;, Month, Year, MonthYear, Quarter, QuarterYear, Week, WeekYear&lt;/SPAN&gt;&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where these are all the date related fields where you might make selections -&amp;gt; &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;, Month, Year, MonthYear, Quarter, QuarterYear, Week, WeekYear&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 13:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177909#M913550</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-31T13:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate total amount of last 6 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177910#M913551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, it has some proble, i didn't get result, pls see attachment. thanks, Jessica.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 08:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177910#M913551</guid>
      <dc:creator />
      <dc:date>2016-06-01T08:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate total amount of last 6 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177911#M913552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you were supplying the incorrect date format to your set analysis expression. For the sample you can try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date(Max(Date) - 3) &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date)))"},[Month(Date)],[Year(Date)],[Week(Date)] &amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 11:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177911#M913552</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-01T11:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate total amount of last 6 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177912#M913553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date(Max(Date) - 3, 'M/D/YYYY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date), 'M/D/YYYY'))"},[Month(Date)],[Year(Date)],[Week(Date)] &amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 11:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177912#M913553</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-01T11:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate total amount of last 6 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177913#M913554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I re-checked, your formula is correct, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jessica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 07:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177913#M913554</guid>
      <dc:creator />
      <dc:date>2016-06-02T07:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate total amount of last 6 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177914#M913555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;If i want to sum the value between selected to last 1 Oct (maybe in same year, maybe in last year), then how to work out formula ?Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;selected date=2016.Jan.3&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;Vaule sum = start 2015.Oct.1 to 2016.Jan.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;selected date=2016.Nov.5&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;Vaule sum = start 2016.Oct.1 to 2016.Nov.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jessica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 07:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177914#M913555</guid>
      <dc:creator />
      <dc:date>2016-06-02T07:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate total amount of last 6 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177915#M913556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this year to date based on your fiscal year?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-total-amount-of-last-6-weeks/m-p/1177915#M913556</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-02T12:24:41Z</dc:date>
    </item>
  </channel>
</rss>

