<?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: Aggregation inside SET Expression for Comparision in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-inside-SET-Expression-for-Comparision/m-p/1685228#M506545</link>
    <description>&lt;P&gt;Where are you using this expression, in a chart or text box? Could you share your sample app explaining expected output in that context?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2020 07:58:08 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2020-03-17T07:58:08Z</dc:date>
    <item>
      <title>Aggregation inside SET Expression for Comparision</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-inside-SET-Expression-for-Comparision/m-p/1685209#M506542</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having problem with the below expression&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;=Count(Distinct {&amp;lt;A_STAT = {"&amp;gt; 6050 &amp;lt;=6950"}, A_STAT_IND-={'C'}, A_STAT_FLG={'N'}, A_DET_STATUS=,&lt;STRONG&gt;&amp;nbsp;Aggr(Max(A_CHK_NO),Link_Key)={" &amp;lt; 6964 "} &lt;/STRONG&gt;&amp;gt;} Link_Key)&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The Aggr part is not working for me, invalid modifier it says. What I am trying to do here is to see if maximum of A_CHK_NO is less than 6964 for my condition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-inside-SET-Expression-for-Comparision/m-p/1685209#M506542</guid>
      <dc:creator>baliyan_vinay</dc:creator>
      <dc:date>2024-11-16T01:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation inside SET Expression for Comparision</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-inside-SET-Expression-for-Comparision/m-p/1685211#M506543</link>
      <description>&lt;P&gt;Modifier in set analysis is expected to be field and not a condition nor a value. You could try like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Count(Distinct {&amp;lt;A_STAT = {"&amp;gt; 6050 &amp;lt;=6950"}, A_STAT_IND-={'C'}, A_STAT_FLG={'N'}, A_DET_STATUS=,&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;Link_Key ={"=Max(A_CHK_NO) &amp;lt; 6964 "}&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;gt;} Link_Key)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 07:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-inside-SET-Expression-for-Comparision/m-p/1685211#M506543</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-03-17T07:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation inside SET Expression for Comparision</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-inside-SET-Expression-for-Comparision/m-p/1685219#M506544</link>
      <description>&lt;P&gt;Thanks for the answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is gone but the does not satisfy the condition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data looks like this&lt;/P&gt;&lt;TABLE border="1" width="44.43%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.33%"&gt;Link_Key&lt;/TD&gt;&lt;TD width="33.33%"&gt;A_CHK_NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.33%"&gt;1&lt;/TD&gt;&lt;TD width="33.33%"&gt;6500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.33%"&gt;1&lt;/TD&gt;&lt;TD width="33.33%"&gt;6700&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;6750&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the Aggr(Max(A_CHK_NO)) was meant to provide 6750 and then comparison against 6964 should satisfy the condition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normal expression works okay for me, see below. But because I need to exclude a filter selection(A_DET_STATUS) for the expression, I am trying the SET expression&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;=Count(Distinct If(A_STAT&amp;gt;6050 and A_STAT&amp;lt;=6950 and Aggr(Max(A_CHK_NO),Link_Key)&amp;lt;6964 and A_STAT_IND &amp;lt;&amp;gt; 'C' and A_STAT_FLG='N',Link_Key))&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 07:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-inside-SET-Expression-for-Comparision/m-p/1685219#M506544</guid>
      <dc:creator>baliyan_vinay</dc:creator>
      <dc:date>2020-03-17T07:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation inside SET Expression for Comparision</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-inside-SET-Expression-for-Comparision/m-p/1685228#M506545</link>
      <description>&lt;P&gt;Where are you using this expression, in a chart or text box? Could you share your sample app explaining expected output in that context?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 07:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-inside-SET-Expression-for-Comparision/m-p/1685228#M506545</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-03-17T07:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation inside SET Expression for Comparision</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-inside-SET-Expression-for-Comparision/m-p/1692183#M506546</link>
      <description>&lt;P&gt;The following Design Blog post may be helpful on this one too:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please be sure to close out the thread if you solved things, you can post what you did if you figured it out on your own, and then use the Accept as Solution button on that post to close the thread.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 20:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-inside-SET-Expression-for-Comparision/m-p/1692183#M506546</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-04-08T20:46:34Z</dc:date>
    </item>
  </channel>
</rss>

