<?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 Set Analysis Issue with Aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085202#M361424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached QVW,&amp;nbsp; Chart : &lt;STRONG&gt;fl met threshold&amp;nbsp; &lt;/STRONG&gt;is expected to show only those FinList meets the weekly sales Threshold set on the slider. I am trying it with Set analysis with below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;=sum({$&amp;lt;FinList={"=&lt;STRONG style="color: #ff0000;"&gt;max&lt;/STRONG&gt;(aggr(sum(sale),FinList,[Ad Week])) &amp;gt; $(vSales_FR)"}&amp;gt;} (sale))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I am using max function and it shows only those &lt;SPAN style="font-size: 13.3333px;"&gt;FinList with max weekly sales above threshold. However this is just to test if my set analysis is working properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now, what I want is 1 -1 comparison where I can show only those rows in the Chart where the sales at weekly level @ &lt;SPAN style="font-size: 13.3333px;"&gt;FinList are greater than sales set at threshold.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me achieving it OR suggest any alternative way to accomplish it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note - ALL SALES&amp;nbsp; is the table where we have just sum of sales with week dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2016 22:02:26 GMT</pubDate>
    <dc:creator>kishorj1982</dc:creator>
    <dc:date>2016-02-09T22:02:26Z</dc:date>
    <item>
      <title>Set Analysis Issue with Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085202#M361424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached QVW,&amp;nbsp; Chart : &lt;STRONG&gt;fl met threshold&amp;nbsp; &lt;/STRONG&gt;is expected to show only those FinList meets the weekly sales Threshold set on the slider. I am trying it with Set analysis with below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;=sum({$&amp;lt;FinList={"=&lt;STRONG style="color: #ff0000;"&gt;max&lt;/STRONG&gt;(aggr(sum(sale),FinList,[Ad Week])) &amp;gt; $(vSales_FR)"}&amp;gt;} (sale))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I am using max function and it shows only those &lt;SPAN style="font-size: 13.3333px;"&gt;FinList with max weekly sales above threshold. However this is just to test if my set analysis is working properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now, what I want is 1 -1 comparison where I can show only those rows in the Chart where the sales at weekly level @ &lt;SPAN style="font-size: 13.3333px;"&gt;FinList are greater than sales set at threshold.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me achieving it OR suggest any alternative way to accomplish it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note - ALL SALES&amp;nbsp; is the table where we have just sum of sales with week dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 22:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085202#M361424</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2016-02-09T22:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue with Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085203#M361425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like attached, using a composite key for FinList and Ad Week&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 22:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085203#M361425</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-09T22:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue with Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085204#M361426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl. Its working as expected.&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt; Just wondering if I have diff table with additional 2 dimensions with lower granularity than Week and Finlist - will it work as appropriate in straight table?&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I think it should be as Set analysis always works at the Field Level and not at the expression level thats my understanding.&lt;/P&gt;&lt;P&gt;I will test that as well and come back.&lt;/P&gt;&lt;P&gt;Meanwhile if you have suggestion on this query please let me know.&lt;/P&gt;&lt;P&gt;Thanks a ton! This community is a wonderful place. Thanks again....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 00:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085204#M361426</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2016-02-10T00:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue with Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085205#M361427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is now answered, please flag the correct answer with Correct Answer.&lt;/P&gt;&lt;P&gt;If there is still something unclear about your question, please let us know what you need more help with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 09:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085205#M361427</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-02-10T09:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue with Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085206#M361428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you add more dimensions, this might result in issues with grain mismatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to adapt the composite key and the advanced aggregation dimensions in the advanced search expression then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can also use advanced aggregation (without the need of a composite key) like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( Aggr(If (Sum(sale) &amp;gt; $(vSales_FR), Sum(sale)),FinList, [Ad Week]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would also need to adapt the dimensions of the aggr() function when you change the chart dimensions to finer granularity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 10:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085206#M361428</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-10T10:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue with Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085207#M361429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl.&lt;/P&gt;&lt;P&gt;But I need to restrict data based on Finlist and Ad week level as my threshold is uniform at that level. In that case how I can manage it with the chart (straight Table) where we have Diff set of dimensions - maybe at lower granularity in this case. I really cant add additional dimensions in the composite key or aggr function as it will alter the definition of applying threshold. &lt;/P&gt;&lt;P&gt;Please help me out here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 15:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-with-Aggr/m-p/1085207#M361429</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2016-02-10T15:35:47Z</dc:date>
    </item>
  </channel>
</rss>

