<?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 Problem with calculation on chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-calculation-on-chart/m-p/198768#M588564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;This is what we did.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;There is no current link between the Item and the cost.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;In the main document for the ILE quantity we split them out.&lt;/P&gt;&lt;P style="font-style: italic; margin: 0cm 0cm 0pt"&gt;ItemLedgerEntry:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;B&gt;LOAD&lt;/B&gt; NAVcoile,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;EntryID,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;ItemIDile,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Key_ItemID,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Key_Cost,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[Posting Date] &lt;B&gt;as&lt;/B&gt; Date,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[Posting Date],&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[Entry Type],&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;LocCode,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Key_LocCode,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Quantity,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[Remaining Quantity],&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;if((Now()-[Posting Date])&amp;lt;=180,([Remaining Quantity])) &lt;B&gt;AS&lt;/B&gt; Current_QTY,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;if((Now()-[Posting Date])&amp;gt;180,([Remaining Quantity])) &lt;B&gt;AS&lt;/B&gt; Aged_QTY,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Open,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[Global Dimension 1 Code],&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[Global Dimension 2 Code],&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;NAVCoSO&lt;/P&gt;&lt;P style="font-weight: bold; margin: 0cm 0cm 0pt"&gt;FROM&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[QVD\ILE.qvd]&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;(qvd);&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;We then did the calculation in the cart. =&lt;B&gt;[Current Value LCY]&lt;/B&gt;/&lt;B&gt;[Current Stock Qty]&lt;/B&gt;*&lt;B&gt;SUM&lt;/B&gt;(&lt;B&gt;[Current_QTY]&lt;/B&gt;)&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1318_sourceID:1318" /&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;This works fine for that chart.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;If we then want to just do a staked bar chart with CO as the bottom axis the original calculation doesn't work because it is calculated at the country level and not the item level.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1319_sourceID:1319" /&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;How would you recommend we do this?&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Mar 2010 10:52:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-31T10:52:08Z</dc:date>
    <item>
      <title>Problem with calculation on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-calculation-on-chart/m-p/198768#M588564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;This is what we did.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;There is no current link between the Item and the cost.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;In the main document for the ILE quantity we split them out.&lt;/P&gt;&lt;P style="font-style: italic; margin: 0cm 0cm 0pt"&gt;ItemLedgerEntry:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;B&gt;LOAD&lt;/B&gt; NAVcoile,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;EntryID,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;ItemIDile,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Key_ItemID,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Key_Cost,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[Posting Date] &lt;B&gt;as&lt;/B&gt; Date,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[Posting Date],&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[Entry Type],&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;LocCode,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Key_LocCode,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Quantity,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[Remaining Quantity],&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;if((Now()-[Posting Date])&amp;lt;=180,([Remaining Quantity])) &lt;B&gt;AS&lt;/B&gt; Current_QTY,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;if((Now()-[Posting Date])&amp;gt;180,([Remaining Quantity])) &lt;B&gt;AS&lt;/B&gt; Aged_QTY,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Open,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[Global Dimension 1 Code],&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[Global Dimension 2 Code],&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;NAVCoSO&lt;/P&gt;&lt;P style="font-weight: bold; margin: 0cm 0cm 0pt"&gt;FROM&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;[QVD\ILE.qvd]&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;(qvd);&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;We then did the calculation in the cart. =&lt;B&gt;[Current Value LCY]&lt;/B&gt;/&lt;B&gt;[Current Stock Qty]&lt;/B&gt;*&lt;B&gt;SUM&lt;/B&gt;(&lt;B&gt;[Current_QTY]&lt;/B&gt;)&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1318_sourceID:1318" /&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;This works fine for that chart.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;If we then want to just do a staked bar chart with CO as the bottom axis the original calculation doesn't work because it is calculated at the country level and not the item level.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1319_sourceID:1319" /&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;How would you recommend we do this?&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Mar 2010 10:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-calculation-on-chart/m-p/198768#M588564</guid>
      <dc:creator />
      <dc:date>2010-03-31T10:52:08Z</dc:date>
    </item>
    <item>
      <title>Problem with calculation on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-calculation-on-chart/m-p/198769#M588565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 16:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-calculation-on-chart/m-p/198769#M588565</guid>
      <dc:creator />
      <dc:date>2010-04-05T16:12:20Z</dc:date>
    </item>
  </channel>
</rss>

