<?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 value list with calculated values from delimited dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2458258#M98639</link>
    <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142894"&gt;@MeehyeOh&lt;/a&gt;&amp;nbsp;. This solution works for my application as well.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 13:01:05 GMT</pubDate>
    <dc:creator>Cameron-R</dc:creator>
    <dc:date>2024-05-31T13:01:05Z</dc:date>
    <item>
      <title>Filter pane value list with calculated values from delimited dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/1824318#M67673</link>
      <description>&lt;P&gt;I have a dimension with many delimited listed values, lets call them "Ingredients", for individual items. The same eight ingredients are randomly present for 30k items.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Item&lt;/TD&gt;&lt;TD&gt;Ingredients&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Sugar;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Milk; Sugar;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;Egg; Water;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;Flour;&amp;nbsp;Milk;&amp;nbsp; Water;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;Salt; Sugar; Yeast;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;Molasses;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using [Ingredients] as a dimension in the filter pane results in 96 filter choices.&amp;nbsp;I would like to create a filter pane where the user can only select the 8 possible available ingredients.&lt;/P&gt;&lt;P&gt;Selecting 'Sugar' in the filter pane should return Items A, B and E in above example.&lt;/P&gt;&lt;P&gt;Selecting 'Sugar' AND 'Milk' returns A, B, D and E.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using nested WildMatch does not yield the expected results but got me closest to my goal:&lt;/P&gt;&lt;P&gt;=IF(WildMatch([Ingredients],'*Egg*'),'Egg',&lt;BR /&gt;IF(WildMatch([Ingredients],'*Flour*'),'Flour',&lt;BR /&gt;IF(WildMatch([Ingredients],'*Milk*'),'Milk',&lt;BR /&gt;IF(WildMatch([Ingredients],'*Molasses*'),'Molasses',&lt;BR /&gt;IF(WildMatch([Ingredients],'*Salt*'),'Salt',&lt;BR /&gt;IF(WildMatch([Ingredients],'*Sugar*'),'Sugar',&lt;BR /&gt;IF(WildMatch([Ingredients],'*Water*'),'Water',&lt;BR /&gt;IF(WildMatch([Ingredients],'*Yeast*'),'Yeast'))))))))&lt;/P&gt;&lt;P&gt;Above function in the filter pane appears to only selects Item A if 'Sugar' is chosen, and selects Items A and B if 'Sugar' and 'Milk' are chosen. The undesired calculations are resulting from the order of&amp;nbsp;operations in the IF statement. Applying a filter on 'Egg' will include all items that have eggs plus anything else. This is the desired behavior.&amp;nbsp;Applying a filter on on 'Flour' only executes if 'Egg' is false so items with eggs are excluded. This is the undesired behavior. Removing the condition =IF(WildMatch([Ingredients],'*Egg*'),'Egg', allows 'Flour' to calculate as desired but then you can no longer pick 'Egg' in the same filter pane. I would like to avoid creating 8 different filter panes.&lt;/P&gt;&lt;P&gt;I was hoping that using Pick() would result in the desired behavior. It doesn't but the code is cleaner:&lt;/P&gt;&lt;P&gt;=Pick(WildMatch(&lt;BR /&gt;&lt;SPAN&gt;[Ingredients],&lt;/SPAN&gt;'*Egg*', '*Flour*', '*Milk*', '*Molasses*', '*Salt*','*Sugar*', '*Water*', '*Yeast*')+1,&lt;BR /&gt;'Unknown', 'Egg', 'Flour', 'Milk', 'Molasses', 'Salt', 'Sugar', 'Water', 'Yeast')&lt;/P&gt;&lt;P&gt;Any help to get the filter pane to yield the correct results would be greatly appreciated. I have tried various other combinations of ValueList() and Aggr() but making a selection is doesn't actually filter any data or the function doesn't appear to be supported by a filter pane.&lt;/P&gt;&lt;P&gt;A different approach I am exploring is using SubField() in the load editor. It may be necessary to create a secondary table and LOAD DISTINCT to unpack the data. Not quite sure how to do this though.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Sample data attached.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 11:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/1824318#M67673</guid>
      <dc:creator>epar5lcd</dc:creator>
      <dc:date>2021-07-27T11:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter pane value list with calculated values from delimited dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2457981#M98606</link>
      <description>&lt;P&gt;Did you ever find the solution to this?&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 21:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2457981#M98606</guid>
      <dc:creator>Cameron-R</dc:creator>
      <dc:date>2024-05-30T21:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filter pane value list with calculated values from delimited dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2457991#M98608</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/243000"&gt;@Cameron-R&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Check with this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="dark:!bg-background w-full overflow-x-auto rounded-b !bg-zinc-100 p-2"&gt;&lt;CODE class="dark:!bg-background rounded !bg-zinc-100 p-1 text-[13px]"&gt;&lt;SPAN class="hljs-operator"&gt;/&lt;/SPAN&gt;&lt;SPAN class="hljs-operator"&gt;/&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;Normalize&lt;/SPAN&gt; the Ingredients field
IngredientsNormalized:
LOAD
    Item,
    &lt;SPAN class="hljs-built_in"&gt;Trim&lt;/SPAN&gt;(SubField(Ingredients, &lt;SPAN class="hljs-string"&gt;';'&lt;/SPAN&gt;)) &lt;SPAN class="hljs-keyword"&gt;AS&lt;/SPAN&gt; Ingredient
Resident YourOriginalTable;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;**********Hope this resolve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the issue is solved please mark the answer with Accept as Solution &amp;amp; like it.********&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 00:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2457991#M98608</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-05-31T00:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter pane value list with calculated values from delimited dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2457993#M98610</link>
      <description>&lt;P&gt;Thanks for your response&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149129"&gt;@TauseefKhan&lt;/a&gt;&amp;nbsp;. Your solution worked to separate the delimited values in the filter pane, but I'm only able to filter by one field value successfully at a time. Is there a way to filter by all that apply within the filter pane?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 00:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2457993#M98610</guid>
      <dc:creator>Cameron-R</dc:creator>
      <dc:date>2024-05-31T00:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter pane value list with calculated values from delimited dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2457997#M98612</link>
      <description>&lt;P&gt;Apply the above logic in scripting.&lt;BR /&gt;Is this not allowing you to select other field value at same time in filter?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 01:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2457997#M98612</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-05-31T01:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filter pane value list with calculated values from delimited dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2458003#M98613</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/243000"&gt;@Cameron-R&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this.&lt;/P&gt;
&lt;P&gt;The test was with the sample data described in the post.&lt;/P&gt;
&lt;P&gt;I used "|" instead of ";" as a delimite.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Load script&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;Test:&lt;/DIV&gt;
&lt;DIV&gt;Load * Inline [&lt;/DIV&gt;
&lt;DIV&gt;Item, Total_Ingredient&lt;/DIV&gt;
&lt;DIV&gt;A, Sugar|&lt;/DIV&gt;
&lt;DIV&gt;B, Milk| Sugar|&lt;/DIV&gt;
&lt;DIV&gt;C, Egg| Water|&lt;/DIV&gt;
&lt;DIV&gt;D, Flour| Milk|&amp;nbsp; Water|&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;E, Salt| Sugar| Yeast|&lt;/DIV&gt;
&lt;DIV&gt;F, Molasses| ];&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Ingredient:&lt;/DIV&gt;
&lt;DIV&gt;Load&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Total_Ingredient,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Trim(SubField(Left(Total_Ingredient,Len(Total_Ingredient)-1), '|')) AS Ingredient&lt;/DIV&gt;
&lt;DIV&gt;Resident Test;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. visualization&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MeehyeOh_0-1717118349481.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167126iA74E10967D37DE90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MeehyeOh_0-1717118349481.png" alt="MeehyeOh_0-1717118349481.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;Selecting 'Sugar'&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MeehyeOh_2-1717118528052.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167128iA244A44B378245C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MeehyeOh_2-1717118528052.png" alt="MeehyeOh_2-1717118528052.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;Selecting 'Sugar' AND 'Milk'&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MeehyeOh_3-1717118549100.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167129i45795FD46E4EF9CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MeehyeOh_3-1717118549100.png" alt="MeehyeOh_3-1717118549100.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 01:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2458003#M98613</guid>
      <dc:creator>MeehyeOh</dc:creator>
      <dc:date>2024-05-31T01:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter pane value list with calculated values from delimited dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2458258#M98639</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142894"&gt;@MeehyeOh&lt;/a&gt;&amp;nbsp;. This solution works for my application as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 13:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-pane-value-list-with-calculated-values-from-delimited/m-p/2458258#M98639</guid>
      <dc:creator>Cameron-R</dc:creator>
      <dc:date>2024-05-31T13:01:05Z</dc:date>
    </item>
  </channel>
</rss>

