<?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: Using If() in filter to select a conditional dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-If-in-filter-to-select-a-conditional-dimension/m-p/2114180#M90961</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you use an if statement in your filter pane this is a normal behavior of Qliksense if you use this expression&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If(Status = 1,Country) in this case you select Status = 1 , then relevant Country&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you may have this : here status 1 is selected ( in green)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brunobertels_0-1694012735059.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115762iC385901342922A6E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brunobertels_0-1694012735059.png" alt="brunobertels_0-1694012735059.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;change your mesure by this one :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=aggr(If(Status = 1,Country),Country)&lt;/P&gt;
&lt;P&gt;then you will have this : ( status is prefiltered with possible value in white and exclude value in grey)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brunobertels_1-1694012839552.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115763i001730B7A136AB26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brunobertels_1-1694012839552.png" alt="brunobertels_1-1694012839552.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2023 15:09:27 GMT</pubDate>
    <dc:creator>brunobertels</dc:creator>
    <dc:date>2023-09-06T15:09:27Z</dc:date>
    <item>
      <title>Using If() in filter to select a conditional dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Using-If-in-filter-to-select-a-conditional-dimension/m-p/2114137#M90960</link>
      <description>&lt;P&gt;HI There,&lt;/P&gt;
&lt;P&gt;First let me appreciate you for taking the time out for this issue.&lt;/P&gt;
&lt;P&gt;Now coming to the question:&lt;/P&gt;
&lt;P&gt;I have the below data:&lt;/P&gt;
&lt;P&gt;T1:&lt;/P&gt;
&lt;P&gt;Load * inline [&lt;/P&gt;
&lt;P&gt;Company,Region,CountryID,Status&lt;/P&gt;
&lt;P&gt;A,USC,2,1&lt;/P&gt;
&lt;P&gt;B,EMEA,5,1&lt;/P&gt;
&lt;P&gt;C,Asia,1,1&lt;/P&gt;
&lt;P&gt;D,Asia,6,0&lt;/P&gt;
&lt;P&gt;E,Africa,4,0&lt;/P&gt;
&lt;P&gt;F,Europe,2,1&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;T2:&lt;/P&gt;
&lt;P&gt;Load * inline [&lt;/P&gt;
&lt;P&gt;CountryID,Country&lt;/P&gt;
&lt;P&gt;1,US&lt;/P&gt;
&lt;P&gt;2,Germany&lt;/P&gt;
&lt;P&gt;3,India&lt;/P&gt;
&lt;P&gt;4,South Africa&lt;/P&gt;
&lt;P&gt;5,Egypt&lt;/P&gt;
&lt;P&gt;6,Japan&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a filter as : If(Status = 1,Country)&lt;/P&gt;
&lt;P&gt;It give me an option to select Germany , US and Egypt, which was expected.&lt;/P&gt;
&lt;P&gt;When I select a value, say germany, two filters are applied simultaneously :&lt;/P&gt;
&lt;P&gt;1. Status = 1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Country = Germany&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I only need that The&lt;STRONG&gt; country filter&lt;/STRONG&gt; is applied and not the status.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Can you please explain the working here. Why 2 filters are applied?&lt;/P&gt;
&lt;P&gt;2. How can I modify the filter to get what is needed? That&amp;nbsp; is only country filters.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 13:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-If-in-filter-to-select-a-conditional-dimension/m-p/2114137#M90960</guid>
      <dc:creator>AnshulKaaz</dc:creator>
      <dc:date>2023-09-06T13:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using If() in filter to select a conditional dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Using-If-in-filter-to-select-a-conditional-dimension/m-p/2114180#M90961</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you use an if statement in your filter pane this is a normal behavior of Qliksense if you use this expression&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If(Status = 1,Country) in this case you select Status = 1 , then relevant Country&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you may have this : here status 1 is selected ( in green)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brunobertels_0-1694012735059.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115762iC385901342922A6E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brunobertels_0-1694012735059.png" alt="brunobertels_0-1694012735059.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;change your mesure by this one :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=aggr(If(Status = 1,Country),Country)&lt;/P&gt;
&lt;P&gt;then you will have this : ( status is prefiltered with possible value in white and exclude value in grey)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brunobertels_1-1694012839552.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115763i001730B7A136AB26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brunobertels_1-1694012839552.png" alt="brunobertels_1-1694012839552.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 15:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-If-in-filter-to-select-a-conditional-dimension/m-p/2114180#M90961</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2023-09-06T15:09:27Z</dc:date>
    </item>
  </channel>
</rss>

