<?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 expression to be modified depending on whether the user has filtered on a specific dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-expression-to-be-modified-depending-on-whether-the-user-has/m-p/1915795#M75415</link>
    <description>&lt;P&gt;Thanks - works well.&lt;/P&gt;
&lt;P&gt;/ Andreas&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 11:48:05 GMT</pubDate>
    <dc:creator>udden2903</dc:creator>
    <dc:date>2022-04-07T11:48:05Z</dc:date>
    <item>
      <title>Set expression to be modified depending on whether the user has filtered on a specific dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-to-be-modified-depending-on-whether-the-user-has/m-p/1914687#M75359</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I have a set expression that will need to be modified depending on whether the user has applied a filter on a specific dimension in my app. The expression looks as follows, where vValue should assume the value of 1 or otherwise be "disabled" depending on whether the user has made a selection on the dimension TerritoryID:&lt;/P&gt;
&lt;P&gt;Sum ( {$&amp;lt;MyVariable = vValue&amp;gt;} Sales )&lt;/P&gt;
&lt;P&gt;The expression should be evaluated as follows:&lt;/P&gt;
&lt;P&gt;If GetSelectedCount(TerritoryID) &amp;gt; 0, then &lt;BR /&gt;Sum ( {$&amp;lt;MyVariable = {1}&amp;gt;} Sales )&lt;/P&gt;
&lt;P&gt;Otherwise&lt;BR /&gt;Sum ( {$&amp;lt;MyVariable = &amp;gt;} Sales )&lt;/P&gt;
&lt;P&gt;Combining the above in one If...Then statement will not work for my purposes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/ Andreas&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 19:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-to-be-modified-depending-on-whether-the-user-has/m-p/1914687#M75359</guid>
      <dc:creator>udden2903</dc:creator>
      <dc:date>2022-04-05T19:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression to be modified depending on whether the user has filtered on a specific dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-to-be-modified-depending-on-whether-the-user-has/m-p/1914699#M75360</link>
      <description>&lt;P&gt;Create a new variable, preferably in the script like this:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Set vChooseMyVariable = =if (&lt;SPAN&gt;GetSelectedCount(TerritoryID) &amp;gt; 0, '{1}', '');&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note there are two "=" in the above.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then your expression will be:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Sum ( {$&amp;lt;MyVariable = $(vChooseMyVariable)&amp;gt;} Sales )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 20:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-to-be-modified-depending-on-whether-the-user-has/m-p/1914699#M75360</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-04-05T20:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression to be modified depending on whether the user has filtered on a specific dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-to-be-modified-depending-on-whether-the-user-has/m-p/1915795#M75415</link>
      <description>&lt;P&gt;Thanks - works well.&lt;/P&gt;
&lt;P&gt;/ Andreas&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 11:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-to-be-modified-depending-on-whether-the-user-has/m-p/1915795#M75415</guid>
      <dc:creator>udden2903</dc:creator>
      <dc:date>2022-04-07T11:48:05Z</dc:date>
    </item>
  </channel>
</rss>

