<?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 Restricting Calculations when Selections are made in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Restricting-Calculations-when-Selections-are-made/m-p/2021766#M84348</link>
    <description>&lt;P&gt;I have a Qlik Table which shows different dimensions and measures when selections are made. I got a request to only show a zero value, when these selections happen, the 'Sales Budget'&amp;nbsp; measure and Dimension 'Products' are selected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried using the following expression&lt;/P&gt;
&lt;P&gt;if([_dimension] = 'Products' , Budget_Value = '0' , (sum({$&amp;lt;PD_Year_Num = {$(_vMaxYear)}&amp;gt;}[Budget_Value])))&lt;/P&gt;
&lt;P&gt;but the issue is when other dimension are selected then values show again. The zero value should remain when&amp;nbsp;the 'Sales Budget'&amp;nbsp; measure and Dimension 'Products' are selected even if they add other dimensions.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2023 13:43:18 GMT</pubDate>
    <dc:creator>LebogangT</dc:creator>
    <dc:date>2023-01-04T13:43:18Z</dc:date>
    <item>
      <title>Restricting Calculations when Selections are made</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-Calculations-when-Selections-are-made/m-p/2021766#M84348</link>
      <description>&lt;P&gt;I have a Qlik Table which shows different dimensions and measures when selections are made. I got a request to only show a zero value, when these selections happen, the 'Sales Budget'&amp;nbsp; measure and Dimension 'Products' are selected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried using the following expression&lt;/P&gt;
&lt;P&gt;if([_dimension] = 'Products' , Budget_Value = '0' , (sum({$&amp;lt;PD_Year_Num = {$(_vMaxYear)}&amp;gt;}[Budget_Value])))&lt;/P&gt;
&lt;P&gt;but the issue is when other dimension are selected then values show again. The zero value should remain when&amp;nbsp;the 'Sales Budget'&amp;nbsp; measure and Dimension 'Products' are selected even if they add other dimensions.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 13:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-Calculations-when-Selections-are-made/m-p/2021766#M84348</guid>
      <dc:creator>LebogangT</dc:creator>
      <dc:date>2023-01-04T13:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Calculations when Selections are made</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-Calculations-when-Selections-are-made/m-p/2021803#M84356</link>
      <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;May be this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if([_dimension] = 'Products' AND&amp;nbsp; Budget_Value = '0' , sum({$&amp;lt;PD_Year_Num = {$(_vMaxYear)}&amp;gt;}[Budget_Value]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 14:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-Calculations-when-Selections-are-made/m-p/2021803#M84356</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2023-01-04T14:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Calculations when Selections are made</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-Calculations-when-Selections-are-made/m-p/2021836#M84365</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Try something like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(index(concat([_dimension],'|'), 'Products'), 0 , (sum({$&amp;lt;PD_Year_Num = {$(_vMaxYear)}&amp;gt;}[Budget_Value])))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Without really understanding how you want your table to function this should at least result in 0 when Products is selected.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 15:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-Calculations-when-Selections-are-made/m-p/2021836#M84365</guid>
      <dc:creator>jbhappysocks</dc:creator>
      <dc:date>2023-01-04T15:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Calculations when Selections are made</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-Calculations-when-Selections-are-made/m-p/2022053#M84377</link>
      <description>&lt;P&gt;This worked like a charm, thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 07:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-Calculations-when-Selections-are-made/m-p/2022053#M84377</guid>
      <dc:creator>LebogangT</dc:creator>
      <dc:date>2023-01-05T07:17:54Z</dc:date>
    </item>
  </channel>
</rss>

