<?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 Sum of rows in pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-of-rows-in-pivot-table/m-p/2527605#M107411</link>
    <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope y'all have a nice summer time .&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got an issue with a pivot table&amp;nbsp; . As you can see in the table below on the 2nd line , the total is uncorrect.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2025-08-18 161535.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182939i9B4EAB43CC67B23F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2025-08-18 161535.png" alt="Capture d’écran 2025-08-18 161535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;expression&lt;/EM&gt; return the correct values . the pivot table got only 1 dimension 'week_number'&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; &lt;U&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp;sum(aggr ( &lt;EM&gt;expression&lt;/EM&gt;, week_number))&amp;nbsp;&lt;/U&gt; and the total is uncorrect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically , the expression is&amp;nbsp; : if column(1) &amp;lt; column(4) then&amp;nbsp; column(4) - column(1) else 0 .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feel free to ask any question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Aug 2025 14:51:37 GMT</pubDate>
    <dc:creator>sunnybi</dc:creator>
    <dc:date>2025-08-18T14:51:37Z</dc:date>
    <item>
      <title>Sum of rows in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-rows-in-pivot-table/m-p/2527605#M107411</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope y'all have a nice summer time .&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got an issue with a pivot table&amp;nbsp; . As you can see in the table below on the 2nd line , the total is uncorrect.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2025-08-18 161535.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182939i9B4EAB43CC67B23F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2025-08-18 161535.png" alt="Capture d’écran 2025-08-18 161535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;expression&lt;/EM&gt; return the correct values . the pivot table got only 1 dimension 'week_number'&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; &lt;U&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp;sum(aggr ( &lt;EM&gt;expression&lt;/EM&gt;, week_number))&amp;nbsp;&lt;/U&gt; and the total is uncorrect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically , the expression is&amp;nbsp; : if column(1) &amp;lt; column(4) then&amp;nbsp; column(4) - column(1) else 0 .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feel free to ask any question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 14:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-rows-in-pivot-table/m-p/2527605#M107411</guid>
      <dc:creator>sunnybi</dc:creator>
      <dc:date>2025-08-18T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of rows in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-rows-in-pivot-table/m-p/2527607#M107412</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think that you can use the Column() function in combination with AGGR() - you probably need to repeat the expressions for columns 4 and 1. Also, you can simplify your formula a bit - instead of asking IF..., use Rangemax():&lt;/P&gt;&lt;P&gt;Rangemax(A-B, 0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;If A &amp;lt; B, then zero will be the max.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 14:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-rows-in-pivot-table/m-p/2527607#M107412</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2025-08-18T14:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of rows in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-rows-in-pivot-table/m-p/2527661#M107424</link>
      <description>&lt;P&gt;1000 thanks to you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 08:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-rows-in-pivot-table/m-p/2527661#M107424</guid>
      <dc:creator>sunnybi</dc:creator>
      <dc:date>2025-08-19T08:08:12Z</dc:date>
    </item>
  </channel>
</rss>

