<?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: Set Analysis Ignore Selection Not Working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-Selection-Not-Working/m-p/1930589#M76658</link>
    <description>&lt;P&gt;&lt;FONT color="#FF6600"&gt;Notes below&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum( {1 &amp;lt;TranYr = {$(PreviousYear)},&amp;nbsp; &amp;nbsp; &lt;FONT color="#FF6600"&gt;&amp;lt;&amp;lt;if the variable PreviousYear / CurrMonth is changing when making selections then you also need to ignore selection it the variable definition&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Month_Paid_Adj ={"&amp;lt;=$(=CurrMonth)"}&amp;gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT color="#808000"&gt;if(placedt_all=&lt;/FONT&gt;aggr({1} nodistinct &lt;FONT color="#008000"&gt;max(placedt_all)&lt;/FONT&gt;,acctpol), -Payment)) &lt;FONT color="#008000"&gt;&amp;lt;&amp;lt;--here max() is not ignoring selections&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#008000"&gt;also&amp;nbsp;is&amp;nbsp; &amp;nbsp;&lt;FONT color="#808000"&gt;if(placedt_all=&amp;nbsp; will also respond to all selections&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Can you post some sample data what exactly are you trying to calculate&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 18:29:32 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2022-05-13T18:29:32Z</dc:date>
    <item>
      <title>Set Analysis Ignore Selection Not Working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-Selection-Not-Working/m-p/1930555#M76655</link>
      <description>&lt;P&gt;I've seen various posts on this but cannot get the below set analysis to ignore selections while respecting the set analysis criteria. Any thoughts? When I select a filter, the result changes contrary to what I expected.&lt;/P&gt;
&lt;P&gt;sum( {1 &amp;lt;TranYr = {$(PreviousYear)},&lt;BR /&gt;Month_Paid_Adj ={"&amp;lt;=$(=CurrMonth)"}&amp;gt;}&lt;BR /&gt;if(placedt_all=aggr({1} nodistinct max(placedt_all),acctpol), -Payment))&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 16:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-Selection-Not-Working/m-p/1930555#M76655</guid>
      <dc:creator>newuser</dc:creator>
      <dc:date>2022-05-13T16:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Ignore Selection Not Working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-Selection-Not-Working/m-p/1930585#M76656</link>
      <description>&lt;P&gt;you actually have two expressions here, one is a sum another is a max.&amp;nbsp; you need to make sure that the set analysis in sum is not applicable to the max expression.&amp;nbsp; that will depend on your data model.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 18:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-Selection-Not-Working/m-p/1930585#M76656</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-05-13T18:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Ignore Selection Not Working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-Selection-Not-Working/m-p/1930589#M76658</link>
      <description>&lt;P&gt;&lt;FONT color="#FF6600"&gt;Notes below&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum( {1 &amp;lt;TranYr = {$(PreviousYear)},&amp;nbsp; &amp;nbsp; &lt;FONT color="#FF6600"&gt;&amp;lt;&amp;lt;if the variable PreviousYear / CurrMonth is changing when making selections then you also need to ignore selection it the variable definition&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Month_Paid_Adj ={"&amp;lt;=$(=CurrMonth)"}&amp;gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT color="#808000"&gt;if(placedt_all=&lt;/FONT&gt;aggr({1} nodistinct &lt;FONT color="#008000"&gt;max(placedt_all)&lt;/FONT&gt;,acctpol), -Payment)) &lt;FONT color="#008000"&gt;&amp;lt;&amp;lt;--here max() is not ignoring selections&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#008000"&gt;also&amp;nbsp;is&amp;nbsp; &amp;nbsp;&lt;FONT color="#808000"&gt;if(placedt_all=&amp;nbsp; will also respond to all selections&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Can you post some sample data what exactly are you trying to calculate&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 18:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-Selection-Not-Working/m-p/1930589#M76658</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-13T18:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Ignore Selection Not Working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-Selection-Not-Working/m-p/1931149#M76719</link>
      <description>&lt;P&gt;I'm not sure what you mean by that, but what I did find is the IF statement in the original syntax above is causing the issue. I then tried to recast the IF statement as an extra set analysis expression. This causes the result to be lower than expected. Unfortunately, I cannot post sample data as it is sensitive. Any thoughts on how to reconfigure the below? The purpose of the last part of the set analysis expression starting with placed_all is to select the most recent placedt_all by acctpol.&lt;/P&gt;
&lt;P&gt;sum( {1 &amp;lt;TranYr = {$(PreviousYear)},&lt;BR /&gt;Month_Paid_Adj ={"&amp;lt;=$(=CurrMonth)"},&lt;BR /&gt;placedt_all={"=aggr({1} nodistinct max(placedt_all),acctpol)"}&amp;gt;} -Payment)&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 14:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-Selection-Not-Working/m-p/1931149#M76719</guid>
      <dc:creator>newuser</dc:creator>
      <dc:date>2022-05-16T14:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Ignore Selection Not Working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-Selection-Not-Working/m-p/1931199#M76722</link>
      <description>&lt;P&gt;FYI - below is the solution I came up with. I exchanged one of the fields, Previous Year, to be a field instead of a variable. I also made sure to put {1} in the appropriate places of the AGGR formula. Between both these changes, or maybe just the latter change, my selections seem to be ignored as I want them to be.&lt;/P&gt;
&lt;P&gt;sum( {1 &amp;lt;TranYr = {$(=PrevYr)},[Transaction Month],[Transaction Year],&lt;BR /&gt;Month_Paid_Adj ={"&amp;lt;=$(=CurrMonth)"}&lt;BR /&gt;,placedt_all={"=max({1} aggr( &lt;BR /&gt;nodistinct max({1} placedt_all),acctpol))"} &lt;BR /&gt;&amp;gt;} -Payment)&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 15:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-Selection-Not-Working/m-p/1931199#M76722</guid>
      <dc:creator>newuser</dc:creator>
      <dc:date>2022-05-16T15:37:52Z</dc:date>
    </item>
  </channel>
</rss>

