<?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: Nullify selection values in if statement in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Nullify-selection-values-in-if-statement/m-p/1617052#M10284</link>
    <description>&lt;P&gt;It works but I have few more fields in the set analysis which are different in both the cases.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in actual it is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if( product='Cards', sum({&amp;lt;country='China', code='106',forecast=$(vmax_cycle)&amp;gt;}sales),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if( product='MF', sum({&amp;lt;country='SGH', code='160',forecast=$(vmax_cycle)&amp;gt;}gross_sales )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please suggest&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2019 12:24:18 GMT</pubDate>
    <dc:creator>Ansh</dc:creator>
    <dc:date>2019-08-27T12:24:18Z</dc:date>
    <item>
      <title>Nullify selection values in if statement</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Nullify-selection-values-in-if-statement/m-p/1617037#M10282</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;My requirement is to nullify the selection in if statement.&lt;/P&gt;
&lt;P&gt;I have year as a filter and I want to nullify its value even if particular year is selected and this has to&amp;nbsp; be done in an if statement.&lt;/P&gt;
&lt;P&gt;My expression is :&lt;BR /&gt;if(product='Cards',sum({&amp;lt;year=&amp;gt;}sales),&lt;/P&gt;
&lt;P&gt;if(product='MF',sum({&amp;lt;year=&amp;gt;}gross_sales))&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I am selecting year =2019, I need to get all years of data but I am getting only 2019 data. If I use&amp;nbsp; &amp;nbsp;sum({&amp;lt;year=&amp;gt;}sales) without using If its is working as expected.&lt;/P&gt;
&lt;P&gt;Please suggest.&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 21:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Nullify-selection-values-in-if-statement/m-p/1617037#M10282</guid>
      <dc:creator>Ansh</dc:creator>
      <dc:date>2020-02-05T21:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Nullify selection values in if statement</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Nullify-selection-values-in-if-statement/m-p/1617040#M10283</link>
      <description>&lt;P&gt;maybe this:&lt;/P&gt;&lt;P&gt;=sum( {&amp;lt;year=&amp;gt;} if( product='Cards', sales,&lt;BR /&gt;if( product='MF', gross_sales )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 12:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Nullify-selection-values-in-if-statement/m-p/1617040#M10283</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2019-08-27T12:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nullify selection values in if statement</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Nullify-selection-values-in-if-statement/m-p/1617052#M10284</link>
      <description>&lt;P&gt;It works but I have few more fields in the set analysis which are different in both the cases.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in actual it is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if( product='Cards', sum({&amp;lt;country='China', code='106',forecast=$(vmax_cycle)&amp;gt;}sales),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if( product='MF', sum({&amp;lt;country='SGH', code='160',forecast=$(vmax_cycle)&amp;gt;}gross_sales )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please suggest&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 12:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Nullify-selection-values-in-if-statement/m-p/1617052#M10284</guid>
      <dc:creator>Ansh</dc:creator>
      <dc:date>2019-08-27T12:24:18Z</dc:date>
    </item>
  </channel>
</rss>

