<?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: Selecting more than one listbox with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860496#M1216112</link>
    <description>&lt;P&gt;Associative data-model means that the data are - properly - linked to each other. In your case that color and food are associated and selecting the color red makes this value green within the list-box and leads to white values of apples, cherries, ... within the food list-box. An additionally selecting of those food values is not needed - it wouldn't have any added value.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Wed, 17 Nov 2021 13:50:14 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2021-11-17T13:50:14Z</dc:date>
    <item>
      <title>Selecting more than one listbox with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860206#M1216097</link>
      <description>&lt;P&gt;I am new to qlik and I am trying to either select 3 different values in a listbox or disable the non-applicable values. I've tried triggers and expressions but still cannot make it work:&lt;/P&gt;
&lt;P&gt;When I select "Red" on the color box, I want Qlik to select "Apples", "Strawberries" and "Cherries"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;When I select "Red" on the color box, I want Qlik to grey out "Avocado", " Banana", "Blueberries" and "Celery"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Test.JPG" style="width: 463px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/66791iDE3AB68FAB3EED9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Test.JPG" alt="Test.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This are the two methods I have tried with Triggers but I am not sure on how to have more than 1 value selected:&lt;/P&gt;
&lt;P&gt;=Pick(match(Color,'Blue','Green','Red','Yellow'),'Blueberries','Avocado','Apples','Banana')&lt;/P&gt;
&lt;P&gt;= if(GetFieldSelections(Color)='Blue','Blueberries',&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if(GetFieldSelections(Color)='Green','Avocado',&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if(GetFieldSelections(Color)='Red','Apples',&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if(GetFieldSelections(Color)='Yellow','Banana'))))&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 04:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860206#M1216097</guid>
      <dc:creator>VC1258</dc:creator>
      <dc:date>2021-11-17T04:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting more than one listbox with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860230#M1216099</link>
      <description>&lt;P&gt;Within the most scenarios there is no need to select anything with actions/macros else the simple and direct selecting of values from the list-boxes is sufficient to get the wanted subset of data. Exactly for this has Qlik the associative datamodel which is easy usable by the color-logic of green + white + grey.&lt;/P&gt;
&lt;P&gt;There are very seldom occasions in which it makes sense to take the efforts to put own logics on top of it - but it's never sensible to try to replace the native logics with own ones.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 06:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860230#M1216099</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-11-17T06:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting more than one listbox with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860231#M1216100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/156690"&gt;@VC1258&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Agree with&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also is it possible to share the data?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 06:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860231#M1216100</guid>
      <dc:creator>abhijitnalekar</dc:creator>
      <dc:date>2021-11-17T06:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting more than one listbox with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860486#M1216111</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49799"&gt;@abhijitnalekar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What exactly do you mean by associative datamodel? Could you guide me on it please? I was thinking it was just a simple "AND" or "OR" I was missing in my logic (I tried &amp;amp; and |), but if there is a simpler way to do that it would be great.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached is the data I am using to test.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 13:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860486#M1216111</guid>
      <dc:creator>VC1258</dc:creator>
      <dc:date>2021-11-17T13:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting more than one listbox with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860496#M1216112</link>
      <description>&lt;P&gt;Associative data-model means that the data are - properly - linked to each other. In your case that color and food are associated and selecting the color red makes this value green within the list-box and leads to white values of apples, cherries, ... within the food list-box. An additionally selecting of those food values is not needed - it wouldn't have any added value.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 13:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860496#M1216112</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-11-17T13:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting more than one listbox with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860499#M1216113</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/156690"&gt;@VC1258&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please modify your script as below and see the magic.&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ColID ,Food&lt;BR /&gt;1,Apples&lt;BR /&gt;4,Avocado&lt;BR /&gt;4,Celery&lt;BR /&gt;1,Strawberries&lt;BR /&gt;2,Banana&lt;BR /&gt;3,Blueberries&lt;BR /&gt;1,Cherries&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ColID,Color&lt;BR /&gt;1,Red&lt;BR /&gt;2,Yellow&lt;BR /&gt;3,Blue&lt;BR /&gt;4,Green&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860499#M1216113</guid>
      <dc:creator>abhijitnalekar</dc:creator>
      <dc:date>2021-11-17T14:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting more than one listbox with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860503#M1216114</link>
      <description>&lt;P&gt;Works perfectly! Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-more-than-one-listbox-with-expression/m-p/1860503#M1216114</guid>
      <dc:creator>VC1258</dc:creator>
      <dc:date>2021-11-17T14:05:23Z</dc:date>
    </item>
  </channel>
</rss>

