<?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: Expression for previous weeks' sales calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-for-previous-weeks-sales-calculation/m-p/305385#M1185217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this but I had no luck. Any other thoughts? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Oct 2011 02:45:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-02T02:45:50Z</dc:date>
    <item>
      <title>Expression for previous weeks' sales calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-previous-weeks-sales-calculation/m-p/305383#M1185215</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 am currently using the following expression to display current and previous 6 weeks' ytd sales figures&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;WK_NUM= {"&amp;lt;=$(=Selected_Week) &amp;gt;=$(=Selected_Week-6)"}&amp;gt;} sales_ytd)/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to implement the same logic when calculating wtd sales figures for the current and previous 6 weeks. The way I derive a week-to-date sales figure is (e.g for wk 13): = WK 13 YTD - WK 12 YTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help will be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 15:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-previous-weeks-sales-calculation/m-p/305383#M1185215</guid>
      <dc:creator />
      <dc:date>2011-09-30T15:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for previous weeks' sales calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-previous-weeks-sales-calculation/m-p/305384#M1185216</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;Expression 1: Current Sales for last 7 weeks (with your expression). Sort the table by week asc.&lt;/P&gt;&lt;P&gt;Expression 2: Previous(Expression 1).&lt;/P&gt;&lt;P&gt;Expression 3: Expression 1 - Expression 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hide expression 1, 2 and uncheck show zero values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Oct 2011 16:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-previous-weeks-sales-calculation/m-p/305384#M1185216</guid>
      <dc:creator />
      <dc:date>2011-10-01T16:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for previous weeks' sales calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-previous-weeks-sales-calculation/m-p/305385#M1185217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this but I had no luck. Any other thoughts? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 02:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-previous-weeks-sales-calculation/m-p/305385#M1185217</guid>
      <dc:creator />
      <dc:date>2011-10-02T02:45:50Z</dc:date>
    </item>
    <item>
      <title>Expression for previous weeks' sales calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-previous-weeks-sales-calculation/m-p/305386#M1185218</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;I must admit I haven't fully understood your requirement, but Kiran's approach might just need to use &lt;/P&gt;&lt;P&gt;above(Expression1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of previous (if you are using a straight table with dimension WK_NUM), I think previous can only be used in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 12:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-previous-weeks-sales-calculation/m-p/305386#M1185218</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-02T12:10:19Z</dc:date>
    </item>
  </channel>
</rss>

