<?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 Multiple selection in listbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-selection-in-listbox/m-p/1627541#M507949</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm having a little trouble selecting multiple items in a listbox. The listbox content is based on the script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Comparison:
Load * Inline [
comp_ID, comp_Name
1, Turnover
2, Margin
3, Tickets
];&lt;/LI-CODE&gt;&lt;P&gt;The graphs that I have on my dashboard are then built conditionally through an expression. There's one expression for each item in Comparison:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(match(getFieldSelections(comp_Name), 'Turnover'), Sum(DocTotal))&lt;/LI-CODE&gt;&lt;P&gt;This seems to work if an individual item is selected. However if I select more than 1 item. I receive a message that there is no data to display.&lt;/P&gt;&lt;P&gt;If I remove the IF clause and just look at the sums, all 3 are combined perfectly, so the data is there. What may be causing this behaviour?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:24:08 GMT</pubDate>
    <dc:creator>Arnec</dc:creator>
    <dc:date>2024-11-16T02:24:08Z</dc:date>
    <item>
      <title>Multiple selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-selection-in-listbox/m-p/1627541#M507949</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm having a little trouble selecting multiple items in a listbox. The listbox content is based on the script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Comparison:
Load * Inline [
comp_ID, comp_Name
1, Turnover
2, Margin
3, Tickets
];&lt;/LI-CODE&gt;&lt;P&gt;The graphs that I have on my dashboard are then built conditionally through an expression. There's one expression for each item in Comparison:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(match(getFieldSelections(comp_Name), 'Turnover'), Sum(DocTotal))&lt;/LI-CODE&gt;&lt;P&gt;This seems to work if an individual item is selected. However if I select more than 1 item. I receive a message that there is no data to display.&lt;/P&gt;&lt;P&gt;If I remove the IF clause and just look at the sums, all 3 are combined perfectly, so the data is there. What may be causing this behaviour?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-selection-in-listbox/m-p/1627541#M507949</guid>
      <dc:creator>Arnec</dc:creator>
      <dc:date>2024-11-16T02:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-selection-in-listbox/m-p/1627572#M507950</link>
      <description>&lt;P&gt;change getfieldselections functions to concat(comp_Name,'&amp;nbsp; ')&lt;/P&gt;&lt;P&gt;getfield selection might return&amp;nbsp;&lt;SPAN&gt;'x of y values'&amp;nbsp; when too many values are selected. concat is more reliable&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 15:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-selection-in-listbox/m-p/1627572#M507950</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-09-24T15:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-selection-in-listbox/m-p/1628422#M507951</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for your reply, but if I replace getFieldSelections by Concat, I can't even build the graph using 1 selection. Now it seems as if there is no data at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Arne&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 07:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-selection-in-listbox/m-p/1628422#M507951</guid>
      <dc:creator>Arnec</dc:creator>
      <dc:date>2019-09-26T07:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-selection-in-listbox/m-p/1628429#M507952</link>
      <description>&lt;P&gt;You could try to use wildmatch() instead of match()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(wildmatch(getFieldSelections(comp_Name), '*Turnover*'), Sum(DocTotal))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See:&amp;nbsp;&lt;A title="wildmatch - script and chart function" href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ConditionalFunctions/wildmatch.htm" target="_self"&gt;wildmatch - script and chart function&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 07:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-selection-in-listbox/m-p/1628429#M507952</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-09-26T07:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-selection-in-listbox/m-p/1631236#M507953</link>
      <description>&lt;P&gt;Arne, did Vegar's last post get you any further, or are you still working upon things?&amp;nbsp; If his post did help, consider using the Accept as Solution button on that post to give him credit.&amp;nbsp; If you have figured something else out, consider posting what you did and then mark that post.&amp;nbsp; If you are still trying to work things out, leave an update on where you are with things, and we'll see if anyone else has any further ideas.&lt;/P&gt;
&lt;P&gt;The only other thing I have for you would be to search around in the Design Blog area, there are a lot of great how-to posts there, not sure what you need here, so I am not going to try to pick any for you, I will let you search on your own, but I am betting you can likely find something that may help you here.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 18:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-selection-in-listbox/m-p/1631236#M507953</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-03T18:23:28Z</dc:date>
    </item>
  </channel>
</rss>

