<?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 Straight table column total problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299183#M495787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The total mode for column 6 (valoare stoc) is set to sum of rows, not expression total, this evaluates to a different total, thus the difference for your column 7 (which uses expression total).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2012 16:33:50 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-01-23T16:33:50Z</dc:date>
    <item>
      <title>Straight table column total problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299176#M495780</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;I have a straight table with 7 columns and the last column (KPI) give wrong total. This must be: column(6)/column(5)*30. Screen shot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="kpi5.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/10519_kpi5.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;See the QVW and XLS &lt;EM class="jive-hilite"&gt;atached&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;(.qvw have limited load (100 lines) because is too large but full .xls atached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in advance&lt;/STRONG&gt;, Marian T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 14:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299176#M495780</guid>
      <dc:creator />
      <dc:date>2012-01-23T14:09:40Z</dc:date>
    </item>
    <item>
      <title>Straight table column total problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299177#M495781</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 can't really see your problem in the provided QVW (zero values) and can't reload from just the xls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure that you have "Expression Total" as the total mode for this expression?&amp;nbsp; Not something like "Avg of Rows"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 14:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299177#M495781</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2012-01-23T14:46:18Z</dc:date>
    </item>
    <item>
      <title>Straight table column total problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299178#M495782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put QVW only for expression example. KPISalesTrade.qvw is original qvw and have limited load (100 lines) with debug because is too large &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt; (136 MB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;Marian T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 15:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299178#M495782</guid>
      <dc:creator />
      <dc:date>2012-01-23T15:01:22Z</dc:date>
    </item>
    <item>
      <title>Straight table column total problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299179#M495783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that the file might be too large but that means that I see col6/col5*30 as 0/0*30 and see the correct answer of 0!&amp;nbsp; So I can't see where your problem is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do have an error on the Sales YTD expression because the fields are not found - but that might be your data load is limited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if you write the expression out "long hand" without the column() functions?&amp;nbsp; Does it calculate correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 15:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299179#M495783</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2012-01-23T15:09:26Z</dc:date>
    </item>
    <item>
      <title>Straight table column total problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299180#M495784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's pretty hard to see anything, since your sample file shows zeros in 6 of 7 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you could try to do a normal load, but then restrict your data using selections and then use File-&amp;gt;Reduce Data-&amp;gt; Keep possible values (and save to different file name). restrict as much as possible but the issue should still be visible to us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only noticed that you are using some field names in your expressions in the chart, that are actually not anymore part of your data model. Could be due to the limited load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing:&lt;/P&gt;&lt;P&gt;You are using set expression like {$ &amp;lt; grupap={'B*'} &amp;gt;}&lt;/P&gt;&lt;P&gt;if this should be a search expression with wildkey *, I believe you should use double quotes instead of single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both does not explain why your total is wrong, so please try to upload a sample where we can see the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 15:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299180#M495784</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-23T15:14:11Z</dc:date>
    </item>
    <item>
      <title>Straight table column total problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299181#M495785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I put full model on my server: &lt;A href="http://www.freestore.ro/qlikview/KPI.rar"&gt;http://www.freestore.ro/qlikview/KPI.rar&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Best Regards&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;Marian T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 15:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299181#M495785</guid>
      <dc:creator />
      <dc:date>2012-01-23T15:47:11Z</dc:date>
    </item>
    <item>
      <title>Straight table column total problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299182#M495786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;calculated&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;correctly&lt;/SPAN&gt;&lt;/SPAN&gt; with "long hand" expression. &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;tried&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;did not work &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;unfortunately.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Best Regards&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;Marian T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 16:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299182#M495786</guid>
      <dc:creator />
      <dc:date>2012-01-23T16:02:05Z</dc:date>
    </item>
    <item>
      <title>Straight table column total problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299183#M495787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The total mode for column 6 (valoare stoc) is set to sum of rows, not expression total, this evaluates to a different total, thus the difference for your column 7 (which uses expression total).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 16:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299183#M495787</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-23T16:33:50Z</dc:date>
    </item>
    <item>
      <title>Straight table column total problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299184#M495788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression for "Valoare Stoc" is set to Sum of Rows.&amp;nbsp; But this is a sum of a ratio multiplication so it is not valid to have it in the Total calculation (6/5*30) because the actual total is different than the sum of the rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the actual KPI should be based off the sum of rows, you need to use an AGGR to calculate Valoare Stoc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr((sum(if(left(grupap, 1)='B',STOCY))-sum(if(left(grupap, 1)='B',total_qty))) * ((SUM({$ &amp;lt; grupap={'B*'}, [luna_f] = {"&amp;lt; $(=luna_f +1)"}&amp;gt;} SUMA_FACTURA-SUMA_FACTURA*DISCOUNT_FACTURA/100)) / (SUM({$ &amp;lt; grupap={'B*'}, [luna_f] = {"&amp;lt; $(=luna_f +1)"}&amp;gt;}&amp;nbsp;&amp;nbsp; CANTITATE*FACTOR_CONVERSIE))), COD_PRODUS))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 16:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299184#M495788</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2012-01-23T16:39:11Z</dc:date>
    </item>
    <item>
      <title>Straight table column total problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299185#M495789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Stephen, Thank you very much, it worked like a charm! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 17:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299185#M495789</guid>
      <dc:creator />
      <dc:date>2012-01-23T17:50:23Z</dc:date>
    </item>
    <item>
      <title>Straight table column total problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299186#M495790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl, thanks too &amp;amp; regards !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 17:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-column-total-problem/m-p/299186#M495790</guid>
      <dc:creator />
      <dc:date>2012-01-23T17:52:58Z</dc:date>
    </item>
  </channel>
</rss>

