<?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 expression, values in the rows are correct, but the totals are wrong in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-expression-values-in-the-rows-are-correct-but-the/m-p/406548#M151228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i attach a document i'm working on, and i experience a few strange things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Table "1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i calculate the present stock (expression 1), outstanding orders (expression 2), &lt;/P&gt;&lt;P&gt;the amount that is sold and available (expression 3) and % of expression 3 versus expression 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problems here are:&lt;/P&gt;&lt;P&gt;expression 4 gives me 18,71%, but if calculate myself the total for expr 3 divided by expr 4 i get 17,13%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; where does this difference come from and how could i solve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Table "2"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is basically the same as table "1" but without the dimensions, because i want to show this on a "dashboard"-page ,&lt;/P&gt;&lt;P&gt;so i don't want all the details showing there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problems here are:&lt;/P&gt;&lt;P&gt;-expression 3 gives me the same as expression 2, so i don't have a clue of what is available now of what's on order&lt;/P&gt;&lt;P&gt;-because expression 3 is wrong expression 4 is also totally wrong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; can these two problems be solved, so i can show these numbers without all the details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Table "3"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is the same as table "1" but as a pivot table, problems are the same as above.&lt;/P&gt;&lt;P&gt;How come that i can get expression 3 correct in table "1", but not in the pivot version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;gauge chart&lt;/STRONG&gt;&lt;/SPAN&gt; is ment to show expression 4, but is also wrong. how can i get it to show the 17,13%?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i included the the file.&lt;/P&gt;&lt;P&gt;Can someone please help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Apr 2013 21:47:09 GMT</pubDate>
    <dc:creator>chriscools</dc:creator>
    <dc:date>2013-04-27T21:47:09Z</dc:date>
    <item>
      <title>Problem with expression, values in the rows are correct, but the totals are wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-expression-values-in-the-rows-are-correct-but-the/m-p/406548#M151228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i attach a document i'm working on, and i experience a few strange things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Table "1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i calculate the present stock (expression 1), outstanding orders (expression 2), &lt;/P&gt;&lt;P&gt;the amount that is sold and available (expression 3) and % of expression 3 versus expression 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problems here are:&lt;/P&gt;&lt;P&gt;expression 4 gives me 18,71%, but if calculate myself the total for expr 3 divided by expr 4 i get 17,13%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; where does this difference come from and how could i solve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Table "2"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is basically the same as table "1" but without the dimensions, because i want to show this on a "dashboard"-page ,&lt;/P&gt;&lt;P&gt;so i don't want all the details showing there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problems here are:&lt;/P&gt;&lt;P&gt;-expression 3 gives me the same as expression 2, so i don't have a clue of what is available now of what's on order&lt;/P&gt;&lt;P&gt;-because expression 3 is wrong expression 4 is also totally wrong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; can these two problems be solved, so i can show these numbers without all the details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Table "3"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is the same as table "1" but as a pivot table, problems are the same as above.&lt;/P&gt;&lt;P&gt;How come that i can get expression 3 correct in table "1", but not in the pivot version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;gauge chart&lt;/STRONG&gt;&lt;/SPAN&gt; is ment to show expression 4, but is also wrong. how can i get it to show the 17,13%?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i included the the file.&lt;/P&gt;&lt;P&gt;Can someone please help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2013 21:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-expression-values-in-the-rows-are-correct-but-the/m-p/406548#M151228</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2013-04-27T21:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with expression, values in the rows are correct, but the totals are wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-expression-values-in-the-rows-are-correct-but-the/m-p/406549#M151229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically, your mixing up &lt;EM&gt;sum(if...&lt;/EM&gt; with &lt;EM&gt;if(sum...&lt;/EM&gt; You're going to have to use the aggr function to create an intermediate virtual table which you can then use compare in an if statement and finally sum the result of that. And to top things off, you need to use the alt function to make sure nulls don't muck up the calculations. See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 09:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-expression-values-in-the-rows-are-correct-but-the/m-p/406549#M151229</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-29T09:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with expression, values in the rows are correct, but the totals are wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-expression-values-in-the-rows-are-correct-but-the/m-p/406550#M151230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx! &lt;/P&gt;&lt;P&gt;now it works ok!&lt;/P&gt;&lt;P&gt;i'll have to study a little bit more on the aggr function and why i mixed the sum if.&lt;/P&gt;&lt;P&gt;Also thank you for the tip regarding the nulls!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 21:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-expression-values-in-the-rows-are-correct-but-the/m-p/406550#M151230</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2013-04-29T21:47:53Z</dc:date>
    </item>
  </channel>
</rss>

