<?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: Aggregate function in Set Analysis with and without $ Expansion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112454#M367759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for explanation swuehl, I couldn't guess why is returning all the values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 15:21:55 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2016-06-14T15:21:55Z</dc:date>
    <item>
      <title>Aggregate function in Set Analysis with and without $ Expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112447#M367752</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;I was trying using Min/Max aggregate function in Set Analysis. I used function in different way and got different result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD SCRIPT&lt;/P&gt;&lt;P&gt;**********************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Marks, Name&lt;/P&gt;&lt;P&gt;150, A&lt;/P&gt;&lt;P&gt;250, B&lt;/P&gt;&lt;P&gt;120, C&lt;/P&gt;&lt;P&gt;320, D&lt;/P&gt;&lt;P&gt;188, E&lt;/P&gt;&lt;P&gt;235, F&lt;/P&gt;&lt;P&gt;354, G&lt;/P&gt;&lt;P&gt;199, H&lt;/P&gt;&lt;P&gt;297, I&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewData:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(Marks) as MaxMarks&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let MaxMarks = Peek('MaxMarks',0,'NewData');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table NewData;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;**********************************************************************************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Function : =Concat({&amp;lt;Marks={"$(=Min(Marks))"}&amp;gt;}Name,';')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Output: C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Function : =Concat({&amp;lt;Marks={"=Min(Marks)"}&amp;gt;}Name,';')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Output: A;B;C;D;E;F;G;H;I&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It seems, in second case.. it is going row by row but I think, it should not be the case when use set.. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Please share your thoughts..!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;-Kamal&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112447#M367752</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2016-06-14T15:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function in Set Analysis with and without $ Expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112448#M367753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At first sight it seems that set analysis isn't working in your second function, so it returns the values it will return removing the set analysis. Can you try it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112448#M367753</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-06-14T15:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function in Set Analysis with and without $ Expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112449#M367754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your second expression's set analysis is not working at all. Without Dollar sign expansion of the Min() function, it is not getting evaluated to any value. That is why you are seeing all the values from your Name field. Where as the first one is evaluating the Min() function and only showing Marks where it equals Min(Marks)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112449#M367754</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-14T15:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function in Set Analysis with and without $ Expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112450#M367755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create straight table chart with Name as a dimension and your two expressions and you can see what is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ConcatSet.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127845_ConcatSet.JPG" style="width: 620px; height: 197px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112450#M367755</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-06-14T15:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function in Set Analysis with and without $ Expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112451#M367756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, at another look, it is working, but it is working like a search string on Marks field. And you are right search strings kind of work line by line on the field they are getting evaluated on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112451#M367756</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-14T15:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function in Set Analysis with and without $ Expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112452#M367757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The second expression is working as designed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The advanced search is creating a hyper cube with marks as dimension and &lt;/P&gt;&lt;P&gt;=Min(Marks) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression, which essentially return the dimensional value, a number, which then would be interpreted as TRUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All true dimensional values will be included in the set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112452#M367757</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-14T15:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function in Set Analysis with and without $ Expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112453#M367758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason is that the $-sign expansion &lt;SPAN style="font-size: 13.3333px;"&gt;$(=Min(Marks)) worked like a variable and which will be calculated once and at first on a global level before the chart is calculated. This meant you couldn't use a $-sign expansion if you need the expression to be calculated on row-level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112453#M367758</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-06-14T15:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function in Set Analysis with and without $ Expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112454#M367759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for explanation swuehl, I couldn't guess why is returning all the values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112454#M367759</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-06-14T15:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function in Set Analysis with and without $ Expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112455#M367760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks much to all of you for your suggestions.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,does that mean.. we should use $ sign expansion while using a function in set.. otherwise we may get unwanted results..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 06:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112455#M367760</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2016-06-15T06:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function in Set Analysis with and without $ Expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112456#M367761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This couldn't be answered in general - it will be always depend on the datamodel and which views with which conditions should be displayed. But if you knows that there are differences between various syntaxes you could it change fast from one to another when the results aren't like expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 06:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112456#M367761</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-06-15T06:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function in Set Analysis with and without $ Expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112457#M367762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for quick response, the reason why I asked this was.. if I want to calculate row by row and want to have all the items concatenated.. I can easily use.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Concat(Name,' ;')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 07:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-in-Set-Analysis-with-and-without-Expansion/m-p/1112457#M367762</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2016-06-15T07:03:07Z</dc:date>
    </item>
  </channel>
</rss>

