<?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: Aggr in pivot adds a null for dim value in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-in-pivot-adds-a-null-for-dim-value/m-p/2071006#M87855</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16737"&gt;@BrunPierre&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Indeed, there was one empty row in my data that caused it.&lt;/P&gt;
&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
    <pubDate>Sun, 14 May 2023 10:04:17 GMT</pubDate>
    <dc:creator>dana</dc:creator>
    <dc:date>2023-05-14T10:04:17Z</dc:date>
    <item>
      <title>Aggr in pivot adds a null for dim value</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-in-pivot-adds-a-null-for-dim-value/m-p/2070985#M87853</link>
      <description>&lt;P&gt;Hi People,&lt;/P&gt;
&lt;P&gt;In order to resolve a total issue in average calculation, I use Aggr in my expression:&lt;/P&gt;
&lt;P&gt;Sum(Aggr({&amp;lt;Service_Cost_Type = {'Service Parts'}&amp;gt;}&lt;BR /&gt;(Sum({&amp;lt;Service_Cost_Type = {'Service Parts'}&amp;gt;} Service_Part_Costs_Monthly)&lt;BR /&gt;/&lt;BR /&gt;Count({&amp;lt;Service_Cost_Type = {'Service Parts'}&amp;gt;} distinct Period))&lt;BR /&gt;,Cust,Part))&lt;/P&gt;
&lt;P&gt;But this causes a null value for the Part dim.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dana_0-1684045281309.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107104i3F3F53FBF8D2D208/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dana_0-1684045281309.png" alt="dana_0-1684045281309.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It doesn't happen with the original expression:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Service_Cost_Type = {'Service Parts'}&amp;gt;} Service_Part_Costs_Monthly)&lt;BR /&gt;/&lt;BR /&gt;Count({&amp;lt;Service_Cost_Type = {'Service Parts'}&amp;gt;} distinct Period)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can resolve it using the AGGR expression only when SecondaryDimensionality =0,&lt;/P&gt;
&lt;P&gt;but I would like to know what causes the missing dim.&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 06:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-in-pivot-adds-a-null-for-dim-value/m-p/2070985#M87853</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2023-05-14T06:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr in pivot adds a null for dim value</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-in-pivot-adds-a-null-for-dim-value/m-p/2070995#M87854</link>
      <description>&lt;P&gt;Hi, I suspect the Part field may contain&lt;STRONG&gt; blank/null/whitespaces&lt;/STRONG&gt; values.&lt;/P&gt;
&lt;P&gt;Check null or blank&lt;BR /&gt;If(Len(Trim(Part )) = 0, 'IsNullBlank, 'NotNullBlank') as FieldCheck.&lt;/P&gt;
&lt;P&gt;The simplest solution in a table might be to suppress zero values.&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 09:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-in-pivot-adds-a-null-for-dim-value/m-p/2070995#M87854</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-05-14T09:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr in pivot adds a null for dim value</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-in-pivot-adds-a-null-for-dim-value/m-p/2071006#M87855</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16737"&gt;@BrunPierre&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Indeed, there was one empty row in my data that caused it.&lt;/P&gt;
&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 10:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-in-pivot-adds-a-null-for-dim-value/m-p/2071006#M87855</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2023-05-14T10:04:17Z</dc:date>
    </item>
  </channel>
</rss>

