<?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: previous(inventory) sorting issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031316#M348181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am attaching the expected result set&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2016 19:08:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-20T19:08:37Z</dc:date>
    <item>
      <title>previous(inventory) sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031311#M348176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am trying to calculate inventory turns (((this week inventory+ last week inventory)/2)/sales). To calculate the inventory I am using the previous(inventory) function so that I get the last week Inventory. But the issue is I have many dimensions where I will be using apart from the week dimesion. for ex: dept, store, and few more. issue is with sorting of previous(inventory) it is no where related .&lt;/P&gt;&lt;P&gt;can anybody help me with this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 20:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031311#M348176</guid>
      <dc:creator />
      <dc:date>2016-01-19T20:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: previous(inventory) sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031312#M348177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a sample app where you can show the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 21:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031312#M348177</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-19T21:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: previous(inventory) sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031313#M348178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am attaching a test file as well. Please let me know your insights on this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 22:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031313#M348178</guid>
      <dc:creator />
      <dc:date>2016-01-19T22:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: previous(inventory) sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031314#M348179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would be the expected result for your sample data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, if you want to use Previous() / Peek() in the script, you need to order your data records accordingly and then you might need to check for changes in column segments (i,e, changes in Dimension values other than week number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to be dynamic with your inventory calculation (i.e. you can't calculate it in the script because it depends on selections / changing dimensions), you can use Above() chart inter record function, analog to Peek() in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 23:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031314#M348179</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-19T23:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: previous(inventory) sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031315#M348180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you please share the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 18:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031315#M348180</guid>
      <dc:creator />
      <dc:date>2016-01-20T18:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: previous(inventory) sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031316#M348181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am attaching the expected result set&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 19:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031316#M348181</guid>
      <dc:creator />
      <dc:date>2016-01-20T19:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: previous(inventory) sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031317#M348182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see the store, dept...etc information in the qvw, but those are used as dimensions in your excel file. Not sure if I can replicate the Excel into your qvw without all the fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 10:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031317#M348182</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-21T10:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: previous(inventory) sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031318#M348183</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have uploaded the latest copy with all the dimensions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 17:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-inventory-sorting-issue/m-p/1031318#M348183</guid>
      <dc:creator />
      <dc:date>2016-01-21T17:05:30Z</dc:date>
    </item>
  </channel>
</rss>

