<?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: Ignoring current selection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2021301#M84313</link>
    <description>&lt;P&gt;did you checked the preview of your formula? it sounds like your date variables might be affected by the selection.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 12:32:31 GMT</pubDate>
    <dc:creator>Oliver_F</dc:creator>
    <dc:date>2023-01-03T12:32:31Z</dc:date>
    <item>
      <title>Ignoring current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2020018#M84233</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a piece of code that calculates the margin:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MONEY(
SUM(AGGR(

 
SUM({$&amp;lt;LOADDATE = {'$(=$(VDATE_peildatum))'}, ORDERYEAR={'$(=$(Vcurrentyear))'}, cake_service = {'cake'}&amp;gt;} REVENUE)

-

IF(
              ISPROJECTMAINORDER = '-1'
    AND
    Order_cat_code = '100'
    AND
    SUM({$&amp;lt;LOADDATE = {'$(=$(VDATE_peildatum))'}, ORDERYEAR={'$(=$(Vcurrentyear))'}, cake_service = {'cake'}&amp;gt;} INITIALBUDGET) &amp;gt; 0.0,
    SUM({$&amp;lt;LOADDATE = {'$(=$(VDATE_peildatum))'}, ORDERYEAR={'$(=$(Vcurrentyear))'}, cake_service = {'cake'}&amp;gt;} INITIALBUDGET),
    IF(
    ISPROJECTMAINORDER = '-1'
    AND
    Order_cat_code = '100',
   
    
    
    
    
    
    
              (sum({$&amp;lt;LOADDATE = {'$(=$(VDATE_peildatum))'}, ORDERYEAR={'$(=$(Vcurrentyear))'}, cake_service = {'cake'}&amp;gt;} REVENUE*0.65)),
        SUM({$&amp;lt;LOADDATE = {'$(=$(VDATE_peildatum))'}, ORDERYEAR={'$(=$(Vcurrentyear))'}, cake_service = {'cake'}&amp;gt;} COSTS)))

, Order_nmbr))
)

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the code to ignore current selections so that the output stays te same no mather what. I tried using '1' and '$' or '-$' but they all don't seem to work. How do I approach this? I think it has something to do with the aggr function&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 09:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2020018#M84233</guid>
      <dc:creator>Simon4</dc:creator>
      <dc:date>2022-12-27T09:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2020058#M84236</link>
      <description>&lt;P&gt;MONEY( SUM(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; {1}&lt;/STRONG&gt;&lt;/FONT&gt; AGGR( ...&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 13:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2020058#M84236</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-12-27T13:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2020062#M84237</link>
      <description>&lt;P&gt;Hi BrunPierre, thank you for your answer. unfortunatly this does not work. when i select for example 2019, the output shifts to zero.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 13:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2020062#M84237</guid>
      <dc:creator>Simon4</dc:creator>
      <dc:date>2022-12-27T13:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2021194#M84311</link>
      <description>&lt;P&gt;you will have you move your IF() block conditions into set analysis and ignore all selections in All aggregation functions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try below&lt;/P&gt;
&lt;P&gt;MONEY(&lt;BR /&gt;SUM({1}AGGR({1}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SUM({1&amp;lt;LOADDATE = {'$(=$(VDATE_peildatum))'}, ORDERYEAR={'$(=$(Vcurrentyear))'}, cake_service = {'cake'}&amp;gt;} REVENUE)&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;IF(&lt;BR /&gt;SUM({1&amp;lt;ISPROJECTMAINORDER = {'-1'}, Order_cat_code = {'100'}, LOADDATE = {'$(=$(VDATE_peildatum))'}, ORDERYEAR={'$(=$(Vcurrentyear))'}, cake_service = {'cake'}&amp;gt;} INITIALBUDGET) &amp;gt; 0,&lt;BR /&gt;SUM({1&amp;lt;LOADDATE = {'$(=$(VDATE_peildatum))'}, ORDERYEAR={'$(=$(Vcurrentyear))'}, cake_service = {'cake'}&amp;gt;} INITIALBUDGET),&lt;BR /&gt;alt(sum({1&amp;lt;ISPROJECTMAINORDER = {'-1'}, Order_cat_code = {'100'},LOADDATE = {'$(=$(VDATE_peildatum))'}, ORDERYEAR={'$(=$(Vcurrentyear))'}, cake_service = {'cake'}&amp;gt;} REVENUE*0.65),&lt;BR /&gt;SUM({1&amp;lt;ISPROJECTMAINORDER = {'-1'}, Order_cat_code = {'100'},LOADDATE = {'$(=$(VDATE_peildatum))'}, ORDERYEAR={'$(=$(Vcurrentyear))'}, cake_service = {'cake'}&amp;gt;} COSTS)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;, Order_nmbr))&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 08:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2021194#M84311</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-01-03T08:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2021299#M84312</link>
      <description>&lt;P&gt;1 as a set modifier is definetly right if you want to ignore the selection.&lt;/P&gt;
&lt;P&gt;your aggr() function does not have a set yet. you can try ....aggr({1}....&lt;/P&gt;
&lt;P&gt;or you can add a {1} at the very first line (even above money()) and remove all the $ where you do definetly need them. This is a relatively new feature in Qlik Sense where you can have a "global" set at the beginning that affects all the following sets.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 12:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2021299#M84312</guid>
      <dc:creator>Oliver_F</dc:creator>
      <dc:date>2023-01-03T12:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2021301#M84313</link>
      <description>&lt;P&gt;did you checked the preview of your formula? it sounds like your date variables might be affected by the selection.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 12:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-current-selection/m-p/2021301#M84313</guid>
      <dc:creator>Oliver_F</dc:creator>
      <dc:date>2023-01-03T12:32:31Z</dc:date>
    </item>
  </channel>
</rss>

