<?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 Previous related error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-related-error/m-p/1414591#M796198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having weekly product sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using below condition, i am not getting correct results sometimes.&lt;/P&gt;&lt;P&gt;when a new product is added or removed in new week, then it's quantity is getting added to previous week sales (if new product is added) and vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if([Product Desc] = Previous([Product Desc]) and [Product No] = Previous([Product No]), Previous(Sales),Sales) as Previous_Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if previous week sales is 40 and current week sales is 50 with new product having 5 as sales, then using above logic i am getting 45 as previous week sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help in correcting the logic?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>shiveshsingh</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Previous related error</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-related-error/m-p/1414591#M796198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having weekly product sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using below condition, i am not getting correct results sometimes.&lt;/P&gt;&lt;P&gt;when a new product is added or removed in new week, then it's quantity is getting added to previous week sales (if new product is added) and vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if([Product Desc] = Previous([Product Desc]) and [Product No] = Previous([Product No]), Previous(Sales),Sales) as Previous_Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if previous week sales is 40 and current week sales is 50 with new product having 5 as sales, then using above logic i am getting 45 as previous week sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help in correcting the logic?&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/Previous-related-error/m-p/1414591#M796198</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Previous related error</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-related-error/m-p/1414592#M796199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you correct order your datas (so the correct previous line is found)&lt;/P&gt;&lt;P&gt;can you post your script here?&lt;/P&gt;&lt;P&gt;and why do you expect 45. for that the script shoul be&lt;/P&gt;&lt;P&gt;previous(Sales)+Sales&lt;/P&gt;&lt;P&gt;right?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Dec 2017 13:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-related-error/m-p/1414592#M796199</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2017-12-16T13:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Previous related error</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-related-error/m-p/1414593#M796200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no week in your statement, Try to create inline and help us to need output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Dec 2017 13:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-related-error/m-p/1414593#M796200</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-16T13:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Previous related error</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-related-error/m-p/1414594#M796201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, i'll try for inline script .&lt;/P&gt;&lt;P&gt;But when i put Week condition too, then current sales and previous sales are becoming equal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Dec 2017 02:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-related-error/m-p/1414594#M796201</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2017-12-17T02:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Previous related error</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-related-error/m-p/1414595#M796202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am expecting 40 but it is coming 45 due to&amp;nbsp; Previous(Sales) +Sales of new product(which is not present in previous week)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Dec 2017 02:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-related-error/m-p/1414595#M796202</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2017-12-17T02:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Previous related error</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-related-error/m-p/1414596#M796203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Let's Consider with example&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Product Desc, Product No, Sales&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12, 10, 100&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12, 10, 200&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;13, 20, 200&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;10, 30, 200&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;13, 20, 300&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;And, If you apply your condition. Outcome will be this&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Product Desc, Product No, Sales, &lt;STRONG&gt;Product_Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12, 10, 100, &lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12, 10, 200, &lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;13, 20, 200, &lt;STRONG&gt;200&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;10, 30, 200, &lt;STRONG&gt;200&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;13, 20, 300, &lt;STRONG&gt;300&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Does it make sense? &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Dec 2017 03:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-related-error/m-p/1414596#M796203</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-17T03:47:48Z</dc:date>
    </item>
  </channel>
</rss>

