<?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 MAX(AGGR(COUNT(Expression),Dimension)) is not working properly in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/MAX-AGGR-COUNT-Expression-Dimension-is-not-working-properly/m-p/1589840#M43249</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm losing my mind over this issue. &lt;STRONG&gt;The expression&amp;nbsp;MAX(AGGR(COUNT(Operation_Idnum),Daynum)) is not working in a simple inline table as it is bringing me nulls in one of the dimensiones&lt;/STRONG&gt; (that's not correct according to the data)&amp;nbsp;and I'm losing my sanity searching for the reason.&lt;/P&gt;&lt;P&gt;I am really grateful for the help in advance. Kind regards.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Evidence.PNG" style="width: 745px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13447iDE027471C94F7A41/image-size/large?v=v2&amp;amp;px=999" role="button" title="Evidence.PNG" alt="Evidence.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I attach the qvf file wih the object and the issue.&lt;/P&gt;&lt;P&gt;The expression is&amp;nbsp;MAX(AGGR(COUNT(Operation_Idnum),Daynum)), the dimension is OrderType.&lt;/P&gt;&lt;P&gt;The inline table is:&lt;/P&gt;&lt;P&gt;Test:&lt;BR /&gt;LOAD * Inline [OrderType,Daynum,Operation_Idnum&lt;BR /&gt;B,1,8923,Oct&lt;BR /&gt;B,1,8924,Oct&lt;BR /&gt;B,1,8925,Oct&lt;BR /&gt;B,2,8926,Oct&lt;BR /&gt;B,2,8927,Oct&lt;BR /&gt;A,1,8928,Oct&lt;BR /&gt;A,1,8929,Oct&lt;BR /&gt;A,2,8930,Oct&lt;BR /&gt;A,2,8931,Oct&lt;BR /&gt;A,2,8932,Oct&lt;BR /&gt;B,1,8933,Nov&lt;BR /&gt;B,1,8934,Nov&lt;BR /&gt;B,1,8935,Nov&lt;BR /&gt;B,2,8936,Nov&lt;BR /&gt;B,2,8937,Nov&lt;BR /&gt;A,1,8938,Nov&lt;BR /&gt;A,1,8939,Nov&lt;BR /&gt;A,2,8940,Nov&lt;BR /&gt;A,2,8941,Nov&lt;BR /&gt;A,2,8942,Nov&lt;BR /&gt;];&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 05:38:20 GMT</pubDate>
    <dc:creator>julioarriaga</dc:creator>
    <dc:date>2024-11-16T05:38:20Z</dc:date>
    <item>
      <title>MAX(AGGR(COUNT(Expression),Dimension)) is not working properly</title>
      <link>https://community.qlik.com/t5/App-Development/MAX-AGGR-COUNT-Expression-Dimension-is-not-working-properly/m-p/1589840#M43249</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm losing my mind over this issue. &lt;STRONG&gt;The expression&amp;nbsp;MAX(AGGR(COUNT(Operation_Idnum),Daynum)) is not working in a simple inline table as it is bringing me nulls in one of the dimensiones&lt;/STRONG&gt; (that's not correct according to the data)&amp;nbsp;and I'm losing my sanity searching for the reason.&lt;/P&gt;&lt;P&gt;I am really grateful for the help in advance. Kind regards.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Evidence.PNG" style="width: 745px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13447iDE027471C94F7A41/image-size/large?v=v2&amp;amp;px=999" role="button" title="Evidence.PNG" alt="Evidence.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I attach the qvf file wih the object and the issue.&lt;/P&gt;&lt;P&gt;The expression is&amp;nbsp;MAX(AGGR(COUNT(Operation_Idnum),Daynum)), the dimension is OrderType.&lt;/P&gt;&lt;P&gt;The inline table is:&lt;/P&gt;&lt;P&gt;Test:&lt;BR /&gt;LOAD * Inline [OrderType,Daynum,Operation_Idnum&lt;BR /&gt;B,1,8923,Oct&lt;BR /&gt;B,1,8924,Oct&lt;BR /&gt;B,1,8925,Oct&lt;BR /&gt;B,2,8926,Oct&lt;BR /&gt;B,2,8927,Oct&lt;BR /&gt;A,1,8928,Oct&lt;BR /&gt;A,1,8929,Oct&lt;BR /&gt;A,2,8930,Oct&lt;BR /&gt;A,2,8931,Oct&lt;BR /&gt;A,2,8932,Oct&lt;BR /&gt;B,1,8933,Nov&lt;BR /&gt;B,1,8934,Nov&lt;BR /&gt;B,1,8935,Nov&lt;BR /&gt;B,2,8936,Nov&lt;BR /&gt;B,2,8937,Nov&lt;BR /&gt;A,1,8938,Nov&lt;BR /&gt;A,1,8939,Nov&lt;BR /&gt;A,2,8940,Nov&lt;BR /&gt;A,2,8941,Nov&lt;BR /&gt;A,2,8942,Nov&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MAX-AGGR-COUNT-Expression-Dimension-is-not-working-properly/m-p/1589840#M43249</guid>
      <dc:creator>julioarriaga</dc:creator>
      <dc:date>2024-11-16T05:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: MAX(AGGR(COUNT(Expression),Dimension)) is not working properly</title>
      <link>https://community.qlik.com/t5/App-Development/MAX-AGGR-COUNT-Expression-Dimension-is-not-working-properly/m-p/1589843#M43251</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;when using aggr function the function disregards the dimensions of the table&amp;nbsp;&lt;/P&gt;&lt;P&gt;so if you want to include the order type in the results you need to change the function to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MAX(AGGR(COUNT(Operation_Idnum),Daynum,Order_Type))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or if you want to get the same result to all order type change to this one&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MAX(AGGR(nodistinct&amp;nbsp; COUNT(Operation_Idnum),Daynum))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 05:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MAX-AGGR-COUNT-Expression-Dimension-is-not-working-properly/m-p/1589843#M43251</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2019-06-10T05:08:15Z</dc:date>
    </item>
  </channel>
</rss>

