<?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: Pivot table totals functions - how is it calculated? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-table-totals-functions-how-is-it-calculated/m-p/1617974#M63318</link>
    <description>&lt;P&gt;First, create a new measure called Dimensionality().&lt;/P&gt;&lt;P&gt;You will notice there will be a different value assigned to total and non-total rows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/18043i3012C87DB374F475/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can control the expression for the Total rows by using conditional if..else&lt;/P&gt;&lt;P&gt;Eg: if(Dimensionality()=1, avg(Number),sum(Number))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer attached qvf for reference.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&lt;/P&gt;&lt;P&gt;Refer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2019 00:31:46 GMT</pubDate>
    <dc:creator>Arthur_Fong</dc:creator>
    <dc:date>2019-08-29T00:31:46Z</dc:date>
    <item>
      <title>Pivot table totals functions - how is it calculated?</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-totals-functions-how-is-it-calculated/m-p/1617645#M63317</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use the pivot table in multiple sheets with different dimensions and measures, and we always encounter the same issue.&lt;/P&gt;&lt;P&gt;the total values are not making any sense,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i understand that when we use very complex set analysis in the measures it can be the cause,&amp;nbsp;&lt;/P&gt;&lt;P&gt;but basically what i would like to have is like in a simple table, the ability to select the total function,&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example we have the following pivot table (top table)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17970iC771D70C29B02CBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and what we see is that for the Org. unit total it is not a simple average&amp;nbsp;&lt;/P&gt;&lt;P&gt;when we convert to simple table (bottom table) and select "total function" AVG - only then the correct value is displayed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;my measure is this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="trebuchet ms,geneva"&gt;avg(EventValue)/3&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can some one explain how is the pivot table totals are being calculated? or how can i force a function like average?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-totals-functions-how-is-it-calculated/m-p/1617645#M63317</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2024-11-16T04:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table totals functions - how is it calculated?</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-totals-functions-how-is-it-calculated/m-p/1617974#M63318</link>
      <description>&lt;P&gt;First, create a new measure called Dimensionality().&lt;/P&gt;&lt;P&gt;You will notice there will be a different value assigned to total and non-total rows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/18043i3012C87DB374F475/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can control the expression for the Total rows by using conditional if..else&lt;/P&gt;&lt;P&gt;Eg: if(Dimensionality()=1, avg(Number),sum(Number))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer attached qvf for reference.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&lt;/P&gt;&lt;P&gt;Refer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 00:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-totals-functions-how-is-it-calculated/m-p/1617974#M63318</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-08-29T00:31:46Z</dc:date>
    </item>
  </channel>
</rss>

