<?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 Issue on using Whole Set ({1}) in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-Issue-on-using-Whole-Set-1-in-Set-Analysis/m-p/1765379#M717919</link>
    <description>&lt;P&gt;Hi &lt;SPAN&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for the solution. But, why it's not working without Only() function. As my expression is returning one single row based on Rank 1. So, it should populate result based on that. But it's not working. Can you please explain me the logic behind that.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 07:39:04 GMT</pubDate>
    <dc:creator>erric3210</dc:creator>
    <dc:date>2020-12-01T07:39:04Z</dc:date>
    <item>
      <title>Aggregate Issue on using Whole Set ({1}) in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Issue-on-using-Whole-Set-1-in-Set-Analysis/m-p/1765341#M717917</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I've facing issue with Aggr() function when using 1 in Set analysis. With $, it is working but when using whole set&amp;nbsp; then it is not giving me the correct result. I need your help on this issue. I've explained the issue below:&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Raw Data Source:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aggr_Source Table.png" style="width: 369px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45022i95F097E373863A40/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aggr_Source Table.png" alt="Aggr_Source Table.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Issue_Aggr.png" style="width: 785px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45024i09BC5A5F0ADA8777/image-size/large?v=v2&amp;amp;px=999" role="button" title="Issue_Aggr.png" alt="Issue_Aggr.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, I've attached the sample file.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Issue-on-using-Whole-Set-1-in-Set-Analysis/m-p/1765341#M717917</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2024-11-15T23:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Issue on using Whole Set ({1}) in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Issue-on-using-Whole-Set-1-in-Set-Analysis/m-p/1765356#M717918</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14069"&gt;@erric3210&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;=Aggr(if(Rank(SUM({1&amp;lt;Category=P(Category)&amp;gt;} Units),1,1)&amp;lt;=1,Only({1}Name&amp;amp;'-'&amp;amp;Country)),Key)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MayilVahanan_0-1606787139219.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45030i7E5AF0B6AA02AFF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1606787139219.png" alt="MayilVahanan_0-1606787139219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 01:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Issue-on-using-Whole-Set-1-in-Set-Analysis/m-p/1765356#M717918</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-12-01T01:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Issue on using Whole Set ({1}) in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Issue-on-using-Whole-Set-1-in-Set-Analysis/m-p/1765379#M717919</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for the solution. But, why it's not working without Only() function. As my expression is returning one single row based on Rank 1. So, it should populate result based on that. But it's not working. Can you please explain me the logic behind that.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 07:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Issue-on-using-Whole-Set-1-in-Set-Analysis/m-p/1765379#M717919</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2020-12-01T07:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Issue on using Whole Set ({1}) in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Issue-on-using-Whole-Set-1-in-Set-Analysis/m-p/1765381#M717920</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14069"&gt;@erric3210&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Your selection is "Id:1" , so there is no country called UK. for that selection.&lt;/P&gt;&lt;P&gt;But based on ur requirement, you need to ignore the selection and display the values which has rank 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you are using {1} to ignore the selection in if statement, condition is satisfied , but in true part, if we just use "Name&amp;amp;'-'&amp;amp;Country", it doesn't has value (because its&amp;nbsp; 'Jack-UK' is in exclude state). so need to ignore the selection in true statement also. that's the reason used only() function with {1} ignore selection .&lt;/P&gt;&lt;P&gt;hope u got it.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 07:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Issue-on-using-Whole-Set-1-in-Set-Analysis/m-p/1765381#M717920</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-12-01T07:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Issue on using Whole Set ({1}) in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Issue-on-using-Whole-Set-1-in-Set-Analysis/m-p/1765383#M717921</link>
      <description>&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;Thanks again for the explanation but that's the if part. I already ignored the selections and used 1 in the set expression&amp;nbsp;&lt;SPAN&gt;Rank(SUM({1&amp;lt;Ca .........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mayil, if you see in Chart 2 values are coming there. Ho w come they are coming. Need to know that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 08:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Issue-on-using-Whole-Set-1-in-Set-Analysis/m-p/1765383#M717921</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2020-12-01T08:06:23Z</dc:date>
    </item>
  </channel>
</rss>

