<?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: Aggr and Only combination in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725668#M55293</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;assuming we talk about one selected value in the field&amp;nbsp;&lt;/P&gt;&lt;P&gt;than you can do like this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if([Country]='ALL',aggr(Only({1&amp;lt;[Country]= &amp;gt;}[Name]),[Name]),aggr(Only([Name]),[Name]))&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 07 Jul 2020 11:19:25 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2020-07-07T11:19:25Z</dc:date>
    <item>
      <title>Aggr and Only combination</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725666#M55292</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I really appreciate your help in the following. I have an filter pane with 3 values in Country field - ALL, USA, CA. What I would like to do in table/scatter/whatever in dimension is, that once the ALL is selected, please Qlik disregards the Country field and give the the whole dataset. Other hand please get the list based on current selection.&lt;/P&gt;&lt;P&gt;I have this one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(index(GetFieldSelections([Country]),'ALL',1)&amp;gt;0,aggr(Only({1&amp;lt;[Country]= &amp;gt;}[Name]),[Name]),aggr(Only([Name]),[Name]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be pretty easy, but still does not work.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;PRU&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 11:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725666#M55292</guid>
      <dc:creator>pe_rusnak</dc:creator>
      <dc:date>2020-07-07T11:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Only combination</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725668#M55293</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;assuming we talk about one selected value in the field&amp;nbsp;&lt;/P&gt;&lt;P&gt;than you can do like this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if([Country]='ALL',aggr(Only({1&amp;lt;[Country]= &amp;gt;}[Name]),[Name]),aggr(Only([Name]),[Name]))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Jul 2020 11:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725668#M55293</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2020-07-07T11:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Only combination</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725670#M55294</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for the quick reply. But have you tested it? It does not work. And I would like to have a solution for multiple selection, therefore I used getfieldselection and index functions in condition...&lt;/P&gt;&lt;P&gt;If I select any of the filter, it does not work properly.&lt;/P&gt;&lt;P&gt;Using April 2020...&lt;/P&gt;&lt;P&gt;PRU&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 11:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725670#M55294</guid>
      <dc:creator>pe_rusnak</dc:creator>
      <dc:date>2020-07-07T11:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Only combination</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725673#M55296</link>
      <description>&lt;P&gt;instead of dimension, put the condition in measure of your chart&lt;/P&gt;&lt;P&gt;Assuming sum(sales) is your measure,&lt;/P&gt;&lt;P&gt;=if(GetFieldSelections(Country)='ALL', sum({&amp;lt;Country&amp;gt;}Sales),&lt;BR /&gt;Sum(Sales))&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 11:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725673#M55296</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-07T11:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Only combination</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725677#M55297</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for this tip. It is working. Is there any way how to achive the same with filter pane visualization? Display all of values if 1 is part of selection and particular values based if not?...Only function need to be used, but I think it is specific one from the aggregation group of function...at least it looks like or doing something incorrectly.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PRU&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 11:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725677#M55297</guid>
      <dc:creator>pe_rusnak</dc:creator>
      <dc:date>2020-07-07T11:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Only combination</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725711#M55306</link>
      <description>&lt;P&gt;I don't think you can do this in filter because filter automatically takes the AQL considerations and based on selection it will grey out the relevant filter values based on associations performed by AQL engine.&lt;/P&gt;&lt;P&gt;Probably as a work around you can create inline field in your data model for Name field by renaming it with different name(Name_all). Use that field as in a filter object and add that filter object in master visualization. Also create master visualization for another filter object in which you need to call original Name field. Add both filter object in container object. You can then use show-hide condition to display particular filter object.&amp;nbsp; When ALL is selected show filter object with inline Name field. Now only thing you need to setup is a field event trigger. When you select values from inline object you need to make a selection of those values in original Name field as well. Unfortunately field event trigger is not available in Qlik as of now but you can make use of some extensions(check Vizlib).&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 13:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725711#M55306</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-07T13:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Only combination</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725840#M55329</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp; for your explanation. But it does not have to be filter, but imagine that you would like to aply this logic to table dimension. It is different than filter and it does not work as well. Set analysis for Only function behaves differently than other sggregation functions.&lt;/P&gt;&lt;P&gt;PRU&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 18:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725840#M55329</guid>
      <dc:creator>pe_rusnak</dc:creator>
      <dc:date>2020-07-07T18:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Only combination</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725847#M55331</link>
      <description>&lt;P&gt;In this case then you need to use the logic in measure instead as I mentioned earlier&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 19:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Only-combination/m-p/1725847#M55331</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-07T19:07:48Z</dc:date>
    </item>
  </channel>
</rss>

