<?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: Multiple Cost by Kg shows incorrect Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Cost-by-Kg-shows-incorrect-Value/m-p/28352#M783709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expression 1 will Sum Cost by Kg based on your dimension and then multiply it with Sum of Kg. Second expression will first multiply Cost by Kg and Kg per row and then sum it for each of your dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2018 15:31:02 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-03-14T15:31:02Z</dc:date>
    <item>
      <title>Multiple Cost by Kg shows incorrect Value</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Cost-by-Kg-shows-incorrect-Value/m-p/28349#M783706</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;I have a table of cost by kg, for multiple types of cost. There are costs for each combination of: Year,Product Group, Real Product and Package Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a table of products, and each product has multiple cost by kg related.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the cost by kg for each product, and it's associated dimensions (Such as real product, rotulated product...), but I'm getting incorrect values when I use dimensions that are not the "keys" dimensions of the costs. (&lt;SPAN style="font-size: 13.3333px;"&gt;Year,Product Group, Real Product and Package Type.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've uploaded an example with the data and the expression that I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I calculate the cost by Kg?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&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/Multiple-Cost-by-Kg-shows-incorrect-Value/m-p/28349#M783706</guid>
      <dc:creator>cristian_av</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Cost by Kg shows incorrect Value</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Cost-by-Kg-shows-incorrect-Value/m-p/28350#M783707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you need this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum([Cost by Kg] * Kg)/Sum(Kg)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196357_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Cost-by-Kg-shows-incorrect-Value/m-p/28350#M783707</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-14T15:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Cost by Kg shows incorrect Value</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Cost-by-Kg-shows-incorrect-Value/m-p/28351#M783708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Dumb of me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tryied with a similar expression:&lt;/P&gt;&lt;P&gt;Sum([Cost by Kg])*Sum(Kg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But with incorrect values. Could you pleas explain to me what is the difference with the following:&lt;/P&gt;&lt;P&gt;Sum([Cost by Kg] * Kg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ask, because in many cases both expression gave me the same values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Sunny &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Cost-by-Kg-shows-incorrect-Value/m-p/28351#M783708</guid>
      <dc:creator>cristian_av</dc:creator>
      <dc:date>2018-03-14T15:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Cost by Kg shows incorrect Value</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Cost-by-Kg-shows-incorrect-Value/m-p/28352#M783709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expression 1 will Sum Cost by Kg based on your dimension and then multiply it with Sum of Kg. Second expression will first multiply Cost by Kg and Kg per row and then sum it for each of your dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Cost-by-Kg-shows-incorrect-Value/m-p/28352#M783709</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-14T15:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Cost by Kg shows incorrect Value</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Cost-by-Kg-shows-incorrect-Value/m-p/28353#M783710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, a lot of sense. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Cost-by-Kg-shows-incorrect-Value/m-p/28353#M783710</guid>
      <dc:creator>cristian_av</dc:creator>
      <dc:date>2018-03-14T15:43:29Z</dc:date>
    </item>
  </channel>
</rss>

