<?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: Filter Pane - IF Statement doesn't work there in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1515060#M36708</link>
    <description>Swuehl,&lt;BR /&gt;Thank you so much for this. It solved our issue when most of our calculation not working due the the date filter with if condition in it.&lt;BR /&gt;&lt;BR /&gt;Angela,</description>
    <pubDate>Fri, 30 Nov 2018 18:51:32 GMT</pubDate>
    <dc:creator>Angela_Zhou</dc:creator>
    <dc:date>2018-11-30T18:51:32Z</dc:date>
    <item>
      <title>Filter Pane - IF Statement doesn't work there</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123791#M19502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could give me some advise here, I would be very appreciated - why IF statement doesn't work in filter pane?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with 2 columns - "Data_Tab_Elements" and "Data_Strata".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to show "&lt;SPAN style="text-decoration: underline;"&gt;Data_Strata&lt;/SPAN&gt;" ('a','b','c','d') in filter pane, ONLY when &lt;SPAN style="font-size: 13.3333px;"&gt;"&lt;SPAN style="text-decoration: underline;"&gt;Data_Tab_Elements&lt;/SPAN&gt;" is '&lt;EM&gt;Category&lt;/EM&gt;'. However, whenever I included IF statement in Filter Pane, it doesn't work. Qlik would not recognize the selection (Showed in "&lt;EM&gt;GetSelectedCount(Data_Strata)&lt;/EM&gt;" as below:)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I create an app to show the differences between &lt;SPAN style="font-size: 13.3333px;"&gt;without IF&lt;/SPAN&gt; vs. with IF. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;without &lt;/SPAN&gt;IF: &lt;EM&gt;Data_Strata&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG __jive_id="128017" alt="no_if.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128017_no_if.PNG" style="height: 272px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;with &lt;/SPAN&gt; IF: &lt;EM&gt;If (Data_Tab_Elements = 'Category',Data_Strata)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG __jive_id="128042" alt="with_if.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/128042_with_if.PNG" style="height: 288px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;To my best knowledge, Filter Pane is set as "DIMENSION", which should allow to use IF statement.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any helps would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123791#M19502</guid>
      <dc:creator>lovelyzai</dc:creator>
      <dc:date>2016-06-15T21:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pane - IF Statement doesn't work there</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123792#M19503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a filter pane field expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(If (Data_Tab_Elements = 'Category',Data_Strata),Data_Strata)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123792#M19503</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-15T22:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pane - IF Statement doesn't work there</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123793#M19504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl! I&lt;/P&gt;&lt;P&gt;have tried your solution. This solution absolutely resolved the problem "IF Statement doesn't work in filter pane." However, it also brings me couple of concerns towards this solution:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Please feel free to correct me if I'm wrong. But to my best knowledge, the Aggr() function would create a "virtual table" that has the .rows with "Data_Tab_Elements" = 'Category', and Join back on the actual source table. This would have more obvious impacts on the performance of the app with the growth of datasets (ex. I do have mass rows in production environment). &lt;/LI&gt;&lt;LI&gt;As the Join results, it would only show one selection after one value is selected (only show that value). We won't be able to do multiple chooses on values. &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="one_choice.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128047_one_choice.PNG" style="height: 313px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123793#M19504</guid>
      <dc:creator>lovelyzai</dc:creator>
      <dc:date>2016-06-16T02:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pane - IF Statement doesn't work there</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123794#M19505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. If I understood you correctly, the virtual table is not joined back to the source table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many Data_Strata values will your final model show? and are Data_Strata and Data_Tab_Elements residing in the same table in your model or in different tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Instead of my first field expression, you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(Only({&amp;lt;Data_Tab_Elements = {Category},Data_Strata= &amp;gt;} Data_Strata),Data_Strata)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should avoid the issue with not showing excluded values and could potentially perform better on larger sets of Data_Strata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 09:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123794#M19505</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-16T09:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pane - IF Statement doesn't work there</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123795#M19506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. You're right! Yes, the virtual table is not "Join back to the source table". My bad. &lt;/P&gt;&lt;P&gt;There are about 7,000 unique Data_Strata values sit on about 500MM rows, which increases another 70MM rows every month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Great! I didn't see any noticeable impacts on the app. Thank you so much! Only a tiny imperfection is that, once a value is selected, other values will become gray, which look like "excluded". But good news is that user can still select other values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="works!.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128159_works!.PNG" style="height: 415px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 14:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123795#M19506</guid>
      <dc:creator>lovelyzai</dc:creator>
      <dc:date>2016-06-16T14:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pane - IF Statement doesn't work there</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123796#M19507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As another option, you can create another field in your load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Data_Tab_Elements,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data_Strata,&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (Data_Tab_Elements = 'Category',Data_Strata) as Data_Strata_Cat,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM ...;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 14:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123796#M19507</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-16T14:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pane - IF Statement doesn't work there</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123797#M19508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That also works. I assume it would increase the app size a little bit, but shouldn't be very bad. Both work around resolve my original problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 15:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123797#M19508</guid>
      <dc:creator>lovelyzai</dc:creator>
      <dc:date>2016-06-16T15:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pane - IF Statement doesn't work there</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123798#M19509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;2. Great! I didn't see any noticeable impacts on the app. Thank you so much! Only a tiny imperfection is that, once a value is selected, other values will become gray, which look like "excluded". But good news is that user can still select other values.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't this Qlik default?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 15:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123798#M19509</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-16T15:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pane - IF Statement doesn't work there</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123799#M19510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's default. But the gray is kind of different, right? I mean, light gray means Alternative choice, and dark gray means Excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the expression without any IF statement, the choice is light gray - Alternative:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="light_gray.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128178_light_gray.PNG" style="height: 572px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The one with Aggr and Only shows as dark gray - Excluded:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="dark_gray.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/128179_dark_gray.PNG" style="height: 728px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 15:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1123799#M19510</guid>
      <dc:creator>lovelyzai</dc:creator>
      <dc:date>2016-06-16T15:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pane - IF Statement doesn't work there</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1515060#M36708</link>
      <description>Swuehl,&lt;BR /&gt;Thank you so much for this. It solved our issue when most of our calculation not working due the the date filter with if condition in it.&lt;BR /&gt;&lt;BR /&gt;Angela,</description>
      <pubDate>Fri, 30 Nov 2018 18:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pane-IF-Statement-doesn-t-work-there/m-p/1515060#M36708</guid>
      <dc:creator>Angela_Zhou</dc:creator>
      <dc:date>2018-11-30T18:51:32Z</dc:date>
    </item>
  </channel>
</rss>

