<?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: Total of all rows in pivot in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Total-of-all-rows-in-pivot/m-p/1908772#M74906</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48554"&gt;@brunobertels&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response.&lt;/P&gt;
&lt;P&gt;I have create below expression:-&lt;/P&gt;
&lt;P&gt;aggr(sum(OPEN_WKG_DAYS),CATEGORY) (numerator)&lt;/P&gt;
&lt;P&gt;aggr(count(ISSUE_NO),Category_EMS) (demoninator) - giving incorrect results&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1648041335578.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75168iF04BC7EB6BB15ED6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_0-1648041335578.png" alt="Aspiring_Developer_0-1648041335578.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For numerator (73+72) = 145 which is correct&lt;/P&gt;
&lt;P&gt;But for denominator (18+3)=21 should come, but is giving me 527 because of the null values present in dimensions.&lt;/P&gt;
&lt;P&gt;I tried to supress my null values in backend like below but still in my denominator it is taking those values :-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_1-1648041485962.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75169iCBDD91F31B5CCF6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_1-1648041485962.png" alt="Aspiring_Developer_1-1648041485962.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help ? Not sure , how should I exclude null values from Count expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2022 13:18:55 GMT</pubDate>
    <dc:creator>Aspiring_Developer</dc:creator>
    <dc:date>2022-03-23T13:18:55Z</dc:date>
    <item>
      <title>Total of all rows in pivot</title>
      <link>https://community.qlik.com/t5/App-Development/Total-of-all-rows-in-pivot/m-p/1908579#M74896</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I have below table:-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1648023583099.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75131i8C3D3FFEFE6AE388/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_0-1648023583099.png" alt="Aspiring_Developer_0-1648023583099.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have to add a new column named 'Average ' using below calculation :-&lt;/P&gt;
&lt;P&gt;Ethernet - issueno&amp;nbsp; (15+4)= 19 -- this is total&lt;/P&gt;
&lt;P&gt;Open wkg days (76+88)= 164-- this is total&lt;/P&gt;
&lt;P&gt;average - 15+19 / 76+164- new column to be added&lt;/P&gt;
&lt;P&gt;Can anyone please help me how we can do it ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 08:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-of-all-rows-in-pivot/m-p/1908579#M74896</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2022-03-23T08:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Total of all rows in pivot</title>
      <link>https://community.qlik.com/t5/App-Development/Total-of-all-rows-in-pivot/m-p/1908725#M74902</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;may be this :&lt;/P&gt;
&lt;P&gt;aggr(count ( Total&amp;lt;CATEGORY&amp;gt; ISSUE_NO),CATEGORY)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;P&gt;aggr(count(TOTAL&amp;lt;CATEGORY&amp;gt; OPEN_WKG_NO),CATEGORY)&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 12:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-of-all-rows-in-pivot/m-p/1908725#M74902</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2022-03-23T12:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Total of all rows in pivot</title>
      <link>https://community.qlik.com/t5/App-Development/Total-of-all-rows-in-pivot/m-p/1908772#M74906</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48554"&gt;@brunobertels&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response.&lt;/P&gt;
&lt;P&gt;I have create below expression:-&lt;/P&gt;
&lt;P&gt;aggr(sum(OPEN_WKG_DAYS),CATEGORY) (numerator)&lt;/P&gt;
&lt;P&gt;aggr(count(ISSUE_NO),Category_EMS) (demoninator) - giving incorrect results&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1648041335578.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75168iF04BC7EB6BB15ED6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_0-1648041335578.png" alt="Aspiring_Developer_0-1648041335578.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For numerator (73+72) = 145 which is correct&lt;/P&gt;
&lt;P&gt;But for denominator (18+3)=21 should come, but is giving me 527 because of the null values present in dimensions.&lt;/P&gt;
&lt;P&gt;I tried to supress my null values in backend like below but still in my denominator it is taking those values :-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_1-1648041485962.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75169iCBDD91F31B5CCF6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_1-1648041485962.png" alt="Aspiring_Developer_1-1648041485962.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help ? Not sure , how should I exclude null values from Count expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 13:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-of-all-rows-in-pivot/m-p/1908772#M74906</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2022-03-23T13:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Total of all rows in pivot</title>
      <link>https://community.qlik.com/t5/App-Development/Total-of-all-rows-in-pivot/m-p/1908851#M74919</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first check that option exclude null value in the dim of your cross table are empty&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brunobertels_0-1648046586498.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75176i6311880B446BB0F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brunobertels_0-1648046586498.png" alt="brunobertels_0-1648046586498.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then try in your load script to replace&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not match(CATEGORY,'-') by not isnull(CATEGORY)&amp;nbsp; also replace&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not match(AGE_BAND_WKG,'-') by not isnull(AGE_BAND_WKG)&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 14:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-of-all-rows-in-pivot/m-p/1908851#M74919</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2022-03-23T14:48:23Z</dc:date>
    </item>
  </channel>
</rss>

