<?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: SET Analysis With Aggr(),Count(),Max() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378444#M420544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may ask Interviewer exactly what you are trying to get. Can you make it as example as we have rights if we are not understand there manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, If you want something please free to make example and result set needed..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2017 06:46:16 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-12-11T06:46:16Z</dc:date>
    <item>
      <title>SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378437#M420537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Kindly help me out in the below scenario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am Having the ID Column in Straight table and I need to use the Expression with Set analysis With all Three Function(&amp;nbsp; Aggr(),Count(),Max() ) and what will be resultant output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the below Script but not Working.i know my script is wrong,&lt;/P&gt;&lt;P&gt;=Aggr(Count(iD),(max({&amp;lt;ID&amp;gt;}id)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; Set Expression()&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;15&lt;/P&gt;&lt;P&gt;20&lt;/P&gt;&lt;P&gt;40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the needful!&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/61824"&gt;marcowedel&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/205546"&gt;devarasu07&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/247981"&gt;jonvitale&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/253813"&gt;pradosh_thakur&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 05:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378437#M420537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T05:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378438#M420538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Aggr(Count(ID), id))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 06:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378438#M420538</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-11T06:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378439#M420539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anil,&lt;/P&gt;&lt;P&gt;it need to be in Set analysis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 06:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378439#M420539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T06:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378440#M420540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is also called set analysis..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 06:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378440#M420540</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-11T06:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378441#M420541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi the Scenario is need to have the &lt;STRONG&gt;Aggr()&lt;/STRONG&gt; function&amp;nbsp; in first &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 06:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378441#M420541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378442#M420542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure your business , May be helps &lt;A href="https://community.qlik.com/qlik-blogpost/2980"&gt;When should the Aggr() function NOT be used?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 06:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378442#M420542</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-11T06:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378443#M420543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it is not up to the Requirement this Scenario was faced in the Interview so i post to get the clarification how&amp;nbsp; we can achieve it&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 06:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378443#M420543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T06:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378444#M420544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may ask Interviewer exactly what you are trying to get. Can you make it as example as we have rights if we are not understand there manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, If you want something please free to make example and result set needed..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 06:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378444#M420544</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-11T06:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378445#M420545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be able to share your expected output in excel format? may be u can try like below,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue(&amp;lt;Dimension&amp;gt;, -Aggr(Count(ID), &amp;lt;Dimension&amp;gt;)) //FirstSortedValue with "-" will return the max value of the dimension&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method 2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;ID={"=Aggr(max(ID),ID)"}&amp;gt;}ID)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method 3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=max( aggr( count(ID),&amp;lt;Dimension&amp;gt; ))&lt;/P&gt;&lt;P&gt;example, &amp;lt;Dimension&amp;gt; is ID then u can write like below&lt;/P&gt;&lt;P&gt;Max( aggr ( Count(ID) , ID) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also u can check this article,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4669"&gt;Set Analysis in the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.analyticsvidhya.com/blog/2014/02/aggr/" title="https://www.analyticsvidhya.com/blog/2014/02/aggr/"&gt;https://www.analyticsvidhya.com/blog/2014/02/aggr/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 06:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378445#M420545</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-12-11T06:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378446#M420546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it is not up to the Requirement this Scenario was faced in the Interview so i post to get the clarification how&amp;nbsp; we can achieve it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they asked me u have ID Column&lt;/P&gt;&lt;P&gt;And Values are 10,20,30,40&lt;/P&gt;&lt;P&gt;in set analysis write the Expression within aggr() function with count(id)and Max(id) &lt;/P&gt;&lt;P&gt;and what will be output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i didn't get that so only i have posted to get the clarification on this scenario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 06:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378446#M420546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T06:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378447#M420547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most interview questions are only stupid and completely meaningless if there is no declared aim which result should be calculated. Just writing an expression with certain functions is like writing any sentences with 10 (certain or respectively random) words ... the results won't be useful in any way ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside this with a bit of guessing it might be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(aggr(max({&amp;lt; Dim3 = {'AnyValue'}&amp;gt;} id), Dim1, Dim2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but like above mentioned each question needs a sensible context otherwise it's meaningless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 08:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378447#M420547</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-12-11T08:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378448#M420548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try to explain what you are trying to achieve here? It seems strange to me that you are neither specifying the goal of the expression nor the expected output. How can we possibly help you if we do not know this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want an expression with ANY possible application of the Aggr, Count, and Max function that also includes some form of set analysis? If so, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(Count({&amp;lt;FieldWeWantMaxOf = {$(Max(FieldWeWantMaxOf))}&amp;gt;} FieldToCount) , DimToAggregateOn)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a shot in the dark, I'd like to hear your specifications more though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 14:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378448#M420548</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2017-12-11T14:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378449#M420549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;It is the interview question and i just got Confused like u what is need to achieve,&lt;/P&gt;&lt;P&gt;that's y i posted here to get the clarification on this question&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 02:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378449#M420549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-12T02:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis With Aggr(),Count(),Max()</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378450#M420550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the interviewer didn't specify the aim of the question to you we can only guess what the answer would be. There can be many answer but i think the reason why he asked the question is &lt;STRONG&gt;"Nested aggregation can't be used together". For example count(max(sales)). &lt;/STRONG&gt;so that may be the reason he/she asked you how will you write it using the aggr function and this is just a guess. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully you cleared the interview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pradosh&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 02:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-With-Aggr-Count-Max/m-p/1378450#M420550</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-12-12T02:46:59Z</dc:date>
    </item>
  </channel>
</rss>

