<?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: Weekly diffrence calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Weekly-diffrence-calculation/m-p/419066#M487013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead calculating in Pivot table, this can be easily done in script while loading using Order by and Previous function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(Previous(Product) = Product, Previous(Sales) - Sales, 0) AS Difference&lt;/P&gt;&lt;P&gt;FROM Datasource&lt;/P&gt;&lt;P&gt;Order by Product, Date Desc;&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>Thu, 07 Mar 2013 15:02:59 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2013-03-07T15:02:59Z</dc:date>
    <item>
      <title>Weekly diffrence calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Weekly-diffrence-calculation/m-p/419065#M487011</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;Can anyone guide me how can calcaulate weekly diffrence in qlikview pivot table in best way. below is my sample requirements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my sample application..i need to label as dynamic for weekend and need to calcualte sales weekly variance based on weekeend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any guidence&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 14:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weekly-diffrence-calculation/m-p/419065#M487011</guid>
      <dc:creator>srinivasa1</dc:creator>
      <dc:date>2013-03-07T14:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly diffrence calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Weekly-diffrence-calculation/m-p/419066#M487013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead calculating in Pivot table, this can be easily done in script while loading using Order by and Previous function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(Previous(Product) = Product, Previous(Sales) - Sales, 0) AS Difference&lt;/P&gt;&lt;P&gt;FROM Datasource&lt;/P&gt;&lt;P&gt;Order by Product, Date Desc;&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>Thu, 07 Mar 2013 15:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weekly-diffrence-calculation/m-p/419066#M487013</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-03-07T15:02:59Z</dc:date>
    </item>
  </channel>
</rss>

