<?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 Expression Total not matching to row values in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337316#M600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; for example if i take the the calulcation coloum3/coloum1 i get the correct values on a row by row basis , yet when using the expression total functionality the result is different to the physical caluclation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5968.16 / 1808.2 = 3.30061 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet in QV the expression total result is 3.63&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our actual expression is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;= &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;tcat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={0} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Finalised Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=_vNull_Fin_Date_Excl) "&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=MAXSTRING(Year))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_sequence&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Max(Sequence))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DelayCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &lt;BR /&gt;&lt;BR /&gt;/&lt;BR /&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;tcat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={0} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Finalised Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=_vNull_Fin_Date_Excl) "&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=MAXSTRING(Year))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_sequence&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Max(Sequence))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EntryCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;) , '#,##0.0' )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2012 19:25:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-04T19:25:33Z</dc:date>
    <item>
      <title>Expression Total not matching to row values</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337316#M600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; for example if i take the the calulcation coloum3/coloum1 i get the correct values on a row by row basis , yet when using the expression total functionality the result is different to the physical caluclation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5968.16 / 1808.2 = 3.30061 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet in QV the expression total result is 3.63&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our actual expression is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;= &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;tcat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={0} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Finalised Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=_vNull_Fin_Date_Excl) "&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=MAXSTRING(Year))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_sequence&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Max(Sequence))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DelayCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &lt;BR /&gt;&lt;BR /&gt;/&lt;BR /&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;tcat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={0} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Finalised Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=_vNull_Fin_Date_Excl) "&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=MAXSTRING(Year))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_sequence&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Max(Sequence))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EntryCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;) , '#,##0.0' )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 19:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337316#M600</guid>
      <dc:creator />
      <dc:date>2012-05-04T19:25:33Z</dc:date>
    </item>
    <item>
      <title>Expression Total not matching to row values</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337317#M601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There can indeed be a difference between an expression total and a sum-of-rows total.&lt;/P&gt;&lt;P&gt;For example, if your measure values might be included / accounted to different dimension values, you will get differing results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using the total mode sum-of-rows in a straight table or calculating a sum-of-rows using aggr() function in a pivot table (there is a chapter in the Help about latter method)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2012 16:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337317#M601</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-05T16:53:41Z</dc:date>
    </item>
    <item>
      <title>Expression Total not matching to row values</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337318#M602</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;The difference in sum of rows and expression typically happens when you have something like a ratio (as in your example), that is not additive. For example, consider two data points:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/3 and 2/3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When added together you will get 1/2+2/3 = 1, but when calculated with the expression, you will get (1+2)/(3+3) = 1/2. The expression is mathematically "correct", and is not arithmetically the same as the sum of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2012 18:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337318#M602</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-05T18:46:46Z</dc:date>
    </item>
    <item>
      <title>Expression Total not matching to row values</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337319#M603</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;If the word &lt;STRONG&gt;total &lt;/STRONG&gt;occurs before an expression, the calculation will be made over all possible values given the&lt;/P&gt;&lt;P&gt;current selections, but disregarding the chart dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where are you using &lt;STRONG&gt;total &lt;/STRONG&gt;keyword? Is it in column 1 which you use to divide column 3.&lt;/P&gt;&lt;P&gt;Please explain in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2012 19:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337319#M603</guid>
      <dc:creator />
      <dc:date>2012-05-05T19:33:22Z</dc:date>
    </item>
    <item>
      <title>Expression Total not matching to row values</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337320#M604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all , i'm making progress ..... for the final step i need to add a calculcation against two expressions in my existing table which consists of many rows of data. Example being &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hrs (expression total)&amp;nbsp; = 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delay (sum of rows) = 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total Delay / Expression Total Hrs =&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible, if so could i get a steer on possible syntax&amp;nbsp; ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a simple expression &lt;SPAN style="font-size: 8pt;"&gt;=([delay]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/hrs) and am &lt;/SPAN&gt;struggling to obtain the total average of 5 and instead can only obtain a sum of rows for the caclulation, when i select expression total it is null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2012 20:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337320#M604</guid>
      <dc:creator />
      <dc:date>2012-05-05T20:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Total not matching to row values</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337321#M605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all , i'm making progress ..... for the final step i need to add a calculcation against two expressions in my existing table which consists of many rows of data. Example being &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hrs (expression total)&amp;nbsp; = 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delay (sum of rows) = 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total Delay / Expression Total Hrs =&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible, if so could i get a steer on possible syntax&amp;nbsp; ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a simple expression &lt;SPAN style="font-size: 10pt;"&gt;=([delay]/hrs) and am &lt;/SPAN&gt;struggling to obtain the total average of 5 and instead can only obtain a sum of rows for the caclulation, when i select expression total it is null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2012 20:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337321#M605</guid>
      <dc:creator />
      <dc:date>2012-05-05T20:58:57Z</dc:date>
    </item>
    <item>
      <title>Expression Total not matching to row values</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337322#M606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be if i understood your problem, you can try sum(total [delay])/sum(total [hrs])&lt;/P&gt;&lt;P&gt;If it is not working please provide screenshots or eg qvw of what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help,&lt;/P&gt;&lt;P&gt;Anosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 May 2012 05:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Expression-Total-not-matching-to-row-values/m-p/337322#M606</guid>
      <dc:creator />
      <dc:date>2012-05-06T05:42:09Z</dc:date>
    </item>
  </channel>
</rss>

