<?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 Items sold vs Current stock level in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148495#M26777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Michael,&lt;/P&gt;&lt;P&gt;Thank you very much for your effort. I'll try if your data model works for us, and I'll let you now the results. It certainly looks like this is the solution for our problem.&lt;/P&gt;&lt;P&gt;regards Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2009 18:57:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-07T18:57:47Z</dc:date>
    <item>
      <title>Items sold vs Current stock level</title>
      <link>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148489#M26771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QlikView fans/experts,&lt;/P&gt;&lt;P&gt;I'm looking for a way to present the number of items sold in a period against the current stock levels in a single tabel. In this case it is also important to see items that are not sold in a selecter period, and of course it should also be possible to see only items that belong to a specific group or supplier. I tryed different ways but I can't find a solution for me problem.&lt;/P&gt;&lt;P&gt;In QlikView I currently have the following tables:&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Article&lt;BR /&gt;Articlenumber&lt;BR /&gt;Articledescription&lt;BR /&gt;Articlegroup&lt;BR /&gt;Suppliernumber&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Transaction&lt;BR /&gt;Transactionumber&lt;BR /&gt;Date&lt;BR /&gt;Time&lt;BR /&gt;Articlenumber&lt;BR /&gt;Items_sold&lt;BR /&gt;Storenumber&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Store&lt;BR /&gt;Storenumber&lt;BR /&gt;Storename&lt;BR /&gt;&lt;BR /&gt;Supplier&lt;BR /&gt;Suppliernumber&lt;BR /&gt;Suppliername&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Stock&lt;BR /&gt;Articlenumber&lt;BR /&gt;Storenumber&lt;BR /&gt;Stocklevel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;At the moment I use the following links between these tables, don't get confused by the stated fieldnames I used other names to prevent circular loops.&lt;BR /&gt;&lt;BR /&gt;Article_Articlenumber -&amp;gt; Transaction_Articlenumber&lt;BR /&gt;Article_Articlenumber -&amp;gt; Stock_Articlenumber&lt;BR /&gt;Article_Suppliernumber -&amp;gt; Supplier_Suppliernumber&lt;BR /&gt;Transaction_Storenumber -&amp;gt; Store_Storenumber&lt;BR /&gt;&lt;BR /&gt;My end result in a QlikView dashboard should be a chart-table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Storenumber&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Storenumber&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Storenumber&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Storenumber&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Articlenumber&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Items sold&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Stock level&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Items sold&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Stock level&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Items sold&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Stock level&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123456&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;234567&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;345678&lt;/TD&gt;&lt;TD&gt;150&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;456789&lt;/TD&gt;&lt;TD&gt;175&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;85&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;BR /&gt;In this table I used the articlenumber and storenumber as an example, it would even better if I could use articlename and storename. Every suggestion to change my QlikView datamodel or to use certain functionality in QlikView is welcome. Is there anyone that can point me in the right direction to find a solution? Thank you in advance!&lt;/P&gt;&lt;P&gt;regards Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jul 2009 15:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148489#M26771</guid>
      <dc:creator />
      <dc:date>2009-07-05T15:53:44Z</dc:date>
    </item>
    <item>
      <title>Items sold vs Current stock level</title>
      <link>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148490#M26772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;BR /&gt;Unless I'm missing something essential... I'd leave two tables (not that it is absolutely necessary, but the fewer usually the better):&lt;BR /&gt;Article (made of Article and Supplier):&lt;BR /&gt;Articlenumber&lt;BR /&gt;Articledescription&lt;BR /&gt;Articlegroup&lt;BR /&gt;Suppliernumber&lt;BR /&gt;Suppliername&lt;BR /&gt;Transaction (made of Transaction, Store and Stock ,concatenating Transaction and Stock):&lt;BR /&gt;Transactionumber&lt;BR /&gt;Date&lt;BR /&gt;Time&lt;BR /&gt;Articlenumber&lt;BR /&gt;Items_sold&lt;BR /&gt;Storenumber&lt;BR /&gt;Storename&lt;BR /&gt;Stocklevel&lt;BR /&gt;&lt;BR /&gt;As for the presentation, it looks for me like a pivot table with dimensions Articlenumber (or description) on the left, and Storenumber (or name) on top, and two expressions - sum(Items_sold) and sum(Stocklevel). Expressions on top, below the Store, totals on left.&lt;BR /&gt;Does it work for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 02:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148490#M26772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-06T02:48:41Z</dc:date>
    </item>
    <item>
      <title>Items sold vs Current stock level</title>
      <link>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148491#M26773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;Thank you for your suggestion. I don't think it will help me solve my problem, or I'm the one missing something here..&lt;BR /&gt;With your suggested data structure I still have the same problem when selecting a certain period based on the transaction date. A period selection will only show articles in the pivottable that are sold in that period. I also want to see the articles that are not sold, because they can also have stock, but I even want to see articles that are not sold and have zero stock. Off course I can use the "Show All Values" checkbox in the pivottable properties, but then I can't use articlegroup or supplier for selecting the articles I want to see in the table. Hope you undertand what I mean.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 03:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148491#M26773</guid>
      <dc:creator />
      <dc:date>2009-07-06T03:30:50Z</dc:date>
    </item>
    <item>
      <title>Items sold vs Current stock level</title>
      <link>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148492#M26774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I see what I'm missing.&lt;BR /&gt;I'll try to get back to this tomorrow. At this moment what I think is that there should be two dimension tables - Articles, which you have already, and Date (Calendar) which you don't have yet. And, there should be generic keys in both (or maybe enough to have it only for Date in your case), to allow stock to be independent from Date selections. Transaction table stays the same in structure, but different in content - generic Date value for the Stock rows.&lt;/P&gt;&lt;P&gt;Addition:&lt;BR /&gt;I didn't plan to get back to the forums today, but just thought of something else... Probably you can stay with the simple data model, the one I described in the first reply, but instead make the expression for stock itself date-insensitive. For example, using set analysis or "total" qualifier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 04:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148492#M26774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-06T04:34:37Z</dc:date>
    </item>
    <item>
      <title>Items sold vs Current stock level</title>
      <link>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148493#M26775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;Thanks for your awnser again, I'm not exactly sure what you mean, can you maybe clarify it a litle bit. I already tryed to create a pivot tables that uses set-analysis to calculate the number of items sold for each article. By de-linking the stock and transaction table this could give the right result. But I can't get it working, the table keeps loading or does nog give a result for the items sold at all..&lt;/P&gt;&lt;P&gt;regards Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 16:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148493#M26775</guid>
      <dc:creator />
      <dc:date>2009-07-06T16:33:36Z</dc:date>
    </item>
    <item>
      <title>Items sold vs Current stock level</title>
      <link>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148494#M26776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;BR /&gt;See attached - this is a way how I'd do it using the data modeling. Maybe it's simpler with set analysis, but I didn't try that.&lt;BR /&gt;Zip includes qvw file and "data source".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 23:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148494#M26776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-06T23:05:00Z</dc:date>
    </item>
    <item>
      <title>Items sold vs Current stock level</title>
      <link>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148495#M26777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Michael,&lt;/P&gt;&lt;P&gt;Thank you very much for your effort. I'll try if your data model works for us, and I'll let you now the results. It certainly looks like this is the solution for our problem.&lt;/P&gt;&lt;P&gt;regards Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 18:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148495#M26777</guid>
      <dc:creator />
      <dc:date>2009-07-07T18:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Items sold vs Current stock level</title>
      <link>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148496#M26778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example, what if you need to calculate on the report, not on the script,&amp;nbsp; the stock level per quarter and product , assuming you must use the last available month of each quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate all your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 16:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Items-sold-vs-Current-stock-level/m-p/148496#M26778</guid>
      <dc:creator />
      <dc:date>2012-07-06T16:49:59Z</dc:date>
    </item>
  </channel>
</rss>

