<?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: Totals on Chart Straight Table not adding up in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866661#M659916</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;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your formulas worked on this model.  , however on the actual Qlikivew Model that I am working with , some of the items the SOH are multiples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg, below, FBGLEMD, the SOH should be 13,174 and not 26,348. For FEEMD, it should be 11,117 and not 55,585.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I can’t upload my original model.  Can you tell me why this happens.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The “SOH” below  is the original formula I had,  and the “SOH test”, I applied your scripting to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2015 13:28:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-20T13:28:11Z</dc:date>
    <item>
      <title>Totals on Chart Straight Table not adding up</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866657#M659909</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;In our business, we sell a component as well as the final product in which the component goes to.&amp;nbsp; Below is a screen shot of of my chart straight table showing 6 months sales and Stock on Hand (SOH). The SOH is the Item SOH multiplied by the Component Quantity.&lt;/P&gt;&lt;P&gt;We sell to our&amp;nbsp; branch and to customers (ie "Sell Out") .&amp;nbsp; In my table, I Ignore sales to Branch , hence the list box sales status , "Sell Out" is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling to get the correct total for the column Stock on Hand (SOH) below.&amp;nbsp; I want to show SOH, even if the item is not sold.&amp;nbsp; In my example, item JKL.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct total for ABC should be &lt;STRONG&gt;23,273&lt;/STRONG&gt; &amp;amp; for JKL is &lt;STRONG&gt;723,449.&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached herewtih is the Qlikview Model as well as the Database in Excel Spreasheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sales Status.JPG" class="jive-image image-1" src="/legacyfs/online/84120_Sales Status.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SOH.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/84119_SOH.JPG" style="width: 620px; height: 140px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 12:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866657#M659909</guid>
      <dc:creator />
      <dc:date>2015-04-20T12:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Totals on Chart Straight Table not adding up</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866658#M659910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to place *$(vComponentQty) inside sum()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Sales Status]&amp;gt;}&lt;/P&gt;&lt;P&gt;[Quantity on Hand] * $(VComponent_Qty))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 12:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866658#M659910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-20T12:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Totals on Chart Straight Table not adding up</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866659#M659912</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;use below :&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;[Sales Status]&amp;gt;}&lt;/P&gt;&lt;P&gt;[Quantity on Hand]*$(VComponent_Qty)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 12:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866659#M659912</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-04-20T12:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Totals on Chart Straight Table not adding up</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866660#M659914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SOH expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Sales Status]&amp;gt;} [Quantity on Hand] * [Component Qty] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns the correct results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 12:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866660#M659914</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-04-20T12:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Totals on Chart Straight Table not adding up</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866661#M659916</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;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your formulas worked on this model.  , however on the actual Qlikivew Model that I am working with , some of the items the SOH are multiples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg, below, FBGLEMD, the SOH should be 13,174 and not 26,348. For FEEMD, it should be 11,117 and not 55,585.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I can’t upload my original model.  Can you tell me why this happens.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The “SOH” below  is the original formula I had,  and the “SOH test”, I applied your scripting to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 13:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866661#M659916</guid>
      <dc:creator />
      <dc:date>2015-04-20T13:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Totals on Chart Straight Table not adding up</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866662#M659920</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;Sorry, the picture did not attach.&amp;nbsp; see below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SOH _test.png" class="jive-image image-1" src="/legacyfs/online/84134_SOH _test.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 13:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866662#M659920</guid>
      <dc:creator />
      <dc:date>2015-04-20T13:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Totals on Chart Straight Table not adding up</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866663#M659921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something is not quite right in the data model, I suspect.&amp;nbsp; It may or may not be possible to fix on the expression level.&lt;/P&gt;&lt;P&gt;(Very wild guess: sum({&amp;lt;[Sales Status]&amp;gt;} [Quantity on Hand] * aggr(min([Component Qty]),[Component Code],[Item Code])))&lt;/P&gt;&lt;P&gt;For a better help, you have to upload an example with that sort of problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 13:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866663#M659921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-20T13:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Totals on Chart Straight Table not adding up</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866664#M659922</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;Thank you for your reply.&amp;nbsp;&amp;nbsp; I even tried the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}&lt;BR /&gt;&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Loc Qty On Hand]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;*&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vComponent_Qty)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ITEM CODE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Component Code]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;but does not work either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;kind regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Nayan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 13:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-on-Chart-Straight-Table-not-adding-up/m-p/866664#M659922</guid>
      <dc:creator />
      <dc:date>2015-04-20T13:49:39Z</dc:date>
    </item>
  </channel>
</rss>

