<?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 - Show all but only those from selected field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1848480#M70125</link>
    <description>&lt;P&gt;I have this set analysis:&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;FLAG={1} ,Type={'Individual'}&amp;gt;} Aggr(max({1}SALES),ID))&lt;BR /&gt;/&lt;BR /&gt;count(distinct {1&amp;lt;Status={'Active'},Type={'Individual'},FLAG={1}&amp;gt;}ID)&lt;/P&gt;&lt;P&gt;However, when I select a selection from Peer Group, I only want those IDs within that Peer Group to show.&lt;/P&gt;&lt;P&gt;The Peer Group has 3 selections:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Top 100&lt;/LI&gt;&lt;LI&gt;Top 101-201&lt;/LI&gt;&lt;LI&gt;Top 201-500&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For example, by default, all 500 items are showing but if I select 'Top 100', then I only want the Top 100 to show.&amp;nbsp; I've done some browsing and playing around with it but I'm stuck, how would I modify my Set Analysis to do this?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 03:33:05 GMT</pubDate>
    <dc:creator>veldetta</dc:creator>
    <dc:date>2021-10-19T03:33:05Z</dc:date>
    <item>
      <title>Set analysis - Show all but only those from selected field</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1848480#M70125</link>
      <description>&lt;P&gt;I have this set analysis:&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;FLAG={1} ,Type={'Individual'}&amp;gt;} Aggr(max({1}SALES),ID))&lt;BR /&gt;/&lt;BR /&gt;count(distinct {1&amp;lt;Status={'Active'},Type={'Individual'},FLAG={1}&amp;gt;}ID)&lt;/P&gt;&lt;P&gt;However, when I select a selection from Peer Group, I only want those IDs within that Peer Group to show.&lt;/P&gt;&lt;P&gt;The Peer Group has 3 selections:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Top 100&lt;/LI&gt;&lt;LI&gt;Top 101-201&lt;/LI&gt;&lt;LI&gt;Top 201-500&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For example, by default, all 500 items are showing but if I select 'Top 100', then I only want the Top 100 to show.&amp;nbsp; I've done some browsing and playing around with it but I'm stuck, how would I modify my Set Analysis to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 03:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1848480#M70125</guid>
      <dc:creator>veldetta</dc:creator>
      <dc:date>2021-10-19T03:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Show all but only those from selected field</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1848491#M70127</link>
      <description>&lt;P&gt;If you want selections to make an impact to your expression, then you might consider to limit your set from {1} to {$}. Like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({$&amp;lt;FLAG={1} ,Type={'Individual'}&amp;gt;} Aggr(max({1}SALES),ID))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;count(distinct {$&amp;lt;Status={'Active'},Type={'Individual'},FLAG={1}&amp;gt;}ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Alternatively you can try to add an modifier to just that field.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({1&amp;lt;[Peer Group]*={*},FLAG={1} ,Type={'Individual'}&amp;gt;} Aggr(max({1}SALES),ID))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;count(distinct {1&amp;lt;[Peer Group]*={*},Status={'Active'},Type={'Individual'},FLAG={1}&amp;gt;}ID)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 04:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1848491#M70127</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-10-19T04:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Show all but only those from selected field</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1848804#M70150</link>
      <description>&lt;P&gt;I want the expression to take into account the Peer selection but ignore everything else which is why the 1st option is not working for me, and the second one doesn't work like i would expect.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 12:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1848804#M70150</guid>
      <dc:creator>veldetta</dc:creator>
      <dc:date>2021-10-19T12:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Show all but only those from selected field</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1848837#M70151</link>
      <description>&lt;P&gt;What about using implicit set analysis. P() like this.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;sum({1&amp;lt;[Peer Group]=P([Peer Group]), FLAG={1} ,Type={'Individual'}&amp;gt;} Aggr(max({1&amp;lt;[Peer Group]=P([Peer Group])&amp;gt;}SALES),ID))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;count(distinct {1&amp;lt;[Peer Group]=P([Peer Group]),Status={'Active'},Type={'Individual'},FLAG={1}&amp;gt;}ID)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 13:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1848837#M70151</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-10-19T13:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Show all but only those from selected field</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1848869#M70152</link>
      <description>&lt;P&gt;You're a lifesaver!&amp;nbsp; That worked.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 13:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1848869#M70152</guid>
      <dc:creator>veldetta</dc:creator>
      <dc:date>2021-10-19T13:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Show all but only those from selected field</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1849080#M70176</link>
      <description>&lt;P&gt;Thank you for the kind words.&amp;nbsp; I am glad it worked out for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Vegar&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 18:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-Show-all-but-only-those-from-selected-field/m-p/1849080#M70176</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-10-19T18:07:56Z</dc:date>
    </item>
  </channel>
</rss>

