<?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 Wrong total in total line in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237997#M88978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is it returning currently?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2010 18:38:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-12T18:38:50Z</dc:date>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237992#M88973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my attachment you can see that the total is not correct&lt;/P&gt;&lt;P&gt;i like to use the if statement because in my real file the formula is very complex.&lt;/P&gt;&lt;P&gt;How are totals calculated in QV? why is the sum not correct?&lt;/P&gt;&lt;P&gt;is use this formula &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;if&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(&lt;B&gt;User_id&lt;/B&gt;=1,0,&lt;B&gt;Sum&lt;/B&gt;(&lt;B&gt;number&lt;/B&gt;)) &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it also possible to change the sum in avg??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 15:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237992#M88973</guid>
      <dc:creator />
      <dc:date>2010-02-12T15:50:56Z</dc:date>
    </item>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237993#M88974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have user_id in the dimension, why do you need to use it in the expression under if condition? May be I am missing what oyu are trying to achieve.&lt;/P&gt;&lt;P&gt;To me seems that if you just put sum(number) in the expression, it will give you what you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 16:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237993#M88974</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-12T16:36:17Z</dc:date>
    </item>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237994#M88975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its the way its aggregating from the dataset.&lt;/P&gt;&lt;P&gt;Try sum(if(user_id=1,0,number))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 16:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237994#M88975</guid>
      <dc:creator />
      <dc:date>2010-02-12T16:45:05Z</dc:date>
    </item>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237995#M88976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnx this works perfect!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 18:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237995#M88976</guid>
      <dc:creator />
      <dc:date>2010-02-12T18:27:06Z</dc:date>
    </item>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237996#M88977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and how about my original if-function?&lt;/P&gt;&lt;P&gt;if (CODA_ASSETBOOK_DEPNSTARTYEAR&amp;gt;year(Now())-1,0,if (CODA_ASSETBOOK_DEPNSTARTYEAR+(CODA_ASSETBOOK_ASSETLIFE/12)&amp;gt;year(Now()),(sum(CODA_ASSETBOOK_COST)-sum(CODA_ASSETBOOK_RESIDVALUEASSET))/((CODA_ASSETBOOK_ASSETLIFE/12)-(if(year(now())-CODA_ASSETBOOK_DEPNSTARTYEAR&amp;gt;(CODA_ASSETBOOK_ASSETLIFE/12), 0, year(now())-CODA_ASSETBOOK_DEPNSTARTYEAR)))&lt;BR /&gt;,0))&lt;/P&gt;&lt;P&gt;the last else 0 (,0) is the problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 18:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237996#M88977</guid>
      <dc:creator />
      <dc:date>2010-02-12T18:32:19Z</dc:date>
    </item>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237997#M88978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is it returning currently?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 18:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237997#M88978</guid>
      <dc:creator />
      <dc:date>2010-02-12T18:38:50Z</dc:date>
    </item>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237998#M88979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is the result , line with activum COMP0003 has value 0, and the total sum is also 0, so there is a problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 18:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237998#M88979</guid>
      <dc:creator />
      <dc:date>2010-02-12T18:59:55Z</dc:date>
    </item>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237999#M88980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, column 2009 is the column to look at&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 19:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/237999#M88980</guid>
      <dc:creator />
      <dc:date>2010-02-12T19:01:34Z</dc:date>
    </item>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/238000#M88981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that the only row that is incorrect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 20:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/238000#M88981</guid>
      <dc:creator />
      <dc:date>2010-02-12T20:12:28Z</dc:date>
    </item>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/238001#M88982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This row is correct, so there has to be a value 0 (zero)&lt;/P&gt;&lt;P&gt;but because there is value 0, the total line (0) is not correct, this is my problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 20:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/238001#M88982</guid>
      <dc:creator />
      <dc:date>2010-02-12T20:24:04Z</dc:date>
    </item>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/238002#M88983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is hard to tell without a sample application to work with, but it is usually aggregation functions nested inside the IF that cause the problem. Can you take the sums off of CODA_ASSETBOOK_COST and CODA_ASSETBOOK_RESIDVALUEASSET and place a sum around the entire IF statement at the top level?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 20:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/238002#M88983</guid>
      <dc:creator />
      <dc:date>2010-02-12T20:30:52Z</dc:date>
    </item>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/238003#M88984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are my STAR! *&lt;/P&gt;&lt;P&gt;that's the solution&lt;/P&gt;&lt;P&gt;thank you very much, and thanx for this great community!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 20:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/238003#M88984</guid>
      <dc:creator />
      <dc:date>2010-02-12T20:39:59Z</dc:date>
    </item>
    <item>
      <title>Wrong total in total line</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/238004#M88985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more question&lt;/P&gt;&lt;P&gt;in my picture you see 2 pivot tables, is it possible to have the total line like in the second table, or is it only possible to have a sum in the total line??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Feb 2010 20:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-total-line/m-p/238004#M88985</guid>
      <dc:creator />
      <dc:date>2010-02-13T20:34:53Z</dc:date>
    </item>
  </channel>
</rss>

