<?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: In Pivot: different totals when collapsed or expanded in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546060#M109905</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/68009"&gt;@dana&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you maybe provide the expanded table as an excel file or a screenshot of all Years, Issue Types and Machines expanded? Since 2025 and 2026 are showing values different to the collapsed table as well.&lt;/P&gt;&lt;P&gt;Seeing the complete data might help identify the problem quicker.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2026 13:55:55 GMT</pubDate>
    <dc:creator>lennart_mo</dc:creator>
    <dc:date>2026-04-02T13:55:55Z</dc:date>
    <item>
      <title>In Pivot: different totals when collapsed or expanded</title>
      <link>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546058#M109904</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I see different total values for a year, when the tables is collapsed and expanded.&lt;/P&gt;&lt;P&gt;This is the collapsed view:&lt;/P&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PIVOT1.png" style="width: 303px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187619i91F65107F59D3176/image-dimensions/303x113?v=v2" width="303" height="113" role="button" title="PIVOT1.png" alt="PIVOT1.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Expanded:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PIVOT2.png" style="width: 361px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187618i41A6B72FFE8E9EA2/image-dimensions/361x171?v=v2" width="361" height="171" role="button" title="PIVOT2.png" alt="PIVOT2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The expression used:&lt;/P&gt;&lt;P&gt;IF( Dimensionality()=3,&lt;BR /&gt;Sum(Duration)&lt;BR /&gt;/&lt;BR /&gt;Count(distinct ServiceCall)&lt;BR /&gt;,&lt;/P&gt;&lt;P&gt;Avg( Aggr(&lt;BR /&gt;Sum(Duration)&lt;BR /&gt;/&lt;BR /&gt;Count(distinct ServiceCall), Year,IssueType, Machine)))&lt;/P&gt;&lt;P&gt;Why does it happen, and what can be done to resolve this?&lt;/P&gt;&lt;P&gt;Thnx in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 14:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546058#M109904</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2026-04-02T14:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot: different totals when collapsed or expanded</title>
      <link>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546060#M109905</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/68009"&gt;@dana&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you maybe provide the expanded table as an excel file or a screenshot of all Years, Issue Types and Machines expanded? Since 2025 and 2026 are showing values different to the collapsed table as well.&lt;/P&gt;&lt;P&gt;Seeing the complete data might help identify the problem quicker.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 13:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546060#M109905</guid>
      <dc:creator>lennart_mo</dc:creator>
      <dc:date>2026-04-02T13:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot: different totals when collapsed or expanded</title>
      <link>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546074#M109906</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I attached an Excel to the post.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 14:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546074#M109906</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2026-04-02T14:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot: different totals when collapsed or expanded</title>
      <link>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546082#M109908</link>
      <description>&lt;P&gt;Your calculations are logically different because sum() / count() is not equally to avg(). The solution will probably be to use a single calculation for this information - and maybe another chart for the stuff which needs a different one and/or removing the dimensionality() and aggr() branch completely.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 15:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546082#M109908</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-04-02T15:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot: different totals when collapsed or expanded</title>
      <link>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546083#M109909</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;The original chart does not have AGGR nor Dimensionality, &amp;nbsp;but has the same issue.&lt;/P&gt;&lt;P&gt;I added them trying to resolve it.&lt;/P&gt;&lt;P&gt;Re MTTR (Mean time to repair):&amp;nbsp;how would you suggest to calculate it?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 15:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546083#M109909</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2026-04-02T15:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot: different totals when collapsed or expanded</title>
      <link>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546085#M109910</link>
      <description>&lt;P&gt;It depends on the wanted result respectively what expects the business to see in this special context. I could imagine that you need something like the avg(aggr(sum()/count(), Dim1, Dim2)) for the entire chart and rather unlikely any kind of mixed calculation.&lt;/P&gt;&lt;P&gt;Helpful would be to add also the sum() and count() as separate expressions to comprehend better which average-result has which background and is rather the better one. More background to the not mandatory trivial matter is here:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/Average-Which-average/ba-p/1466654" target="_blank"&gt;Average – Which average? - Qlik Community - 1466654&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 15:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546085#M109910</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-04-02T15:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot: different totals when collapsed or expanded</title>
      <link>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546087#M109911</link>
      <description>&lt;P&gt;Indeed, using only that expression resolved the issue:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Avg( Aggr(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum(Duration)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Count(distinct ServiceCall), Year,IssueType, Machine)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 15:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546087#M109911</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2026-04-02T15:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot: different totals when collapsed or expanded</title>
      <link>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546088#M109912</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/68009"&gt;@dana&lt;/a&gt;,&lt;BR /&gt;I just looked at your data and though&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;already provided you with a solution, I'm just curious to ask: Are there any NULL-Values for Machines or Issue Types you chose to not display in either of the Dimensions?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 15:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546088#M109912</guid>
      <dc:creator>lennart_mo</dc:creator>
      <dc:date>2026-04-02T15:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: In Pivot: different totals when collapsed or expanded</title>
      <link>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546092#M109913</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The expression includes flags so there is no need to suppress null dimension values:&lt;/P&gt;&lt;P&gt;{&amp;lt;Flag_InMachineMetrics = {1}, Flag_MonitoredMachine = {1}&amp;gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 18:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-Pivot-different-totals-when-collapsed-or-expanded/m-p/2546092#M109913</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2026-04-02T18:01:24Z</dc:date>
    </item>
  </channel>
</rss>

