<?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 Multiselect on a filter using triggers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiselect-on-a-filter-using-triggers/m-p/635110#M232937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi Community,&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have a product selection on my report, in which user should be able to select multiple products for all conditions except 1 condition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have written the below expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=if(GetFieldSelections([_Select Chart NM])='Top 15 &amp;amp; Bottom 15 Physicians',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF(GetSelectedCount([Brand Name])=0,SubField( Concat(DISTINCT [Brand Name], ','),',')&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,subfield(GetFieldSelections([Brand Name]),','))&amp;nbsp; ,&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'("'&amp;amp;GetFieldSelections([Brand Name],'"|"')&amp;amp;'")')&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;What this expression does is, when top 15 &amp;amp; bottom 15 physicians are selected, then the user cannot select more than 1 product. whereas on all other selections user should be able to select multiple products and&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit; font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;'("'&amp;amp;GetFieldSelections([Brand Name],'"|"')&amp;amp;'")'&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;expression comes into picture.&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This expression works fine, but the problem is when the brand name has spaces in between it acts wierd. Say a user selects brand:&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;"ABC XY"&lt;/STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;and brand&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;"EFG"&lt;/STRONG&gt;, then at the first instant&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;user can see the data for all selected products&lt;/STRONG&gt;, but when the user selects anything else, say changes time period on report etc the&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;brand selection with space, i.e "ABC XY" gets deselected and user can see data only for brand "EFG".&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;Any Suggestions?&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2014 16:14:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-15T16:14:00Z</dc:date>
    <item>
      <title>Multiselect on a filter using triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Multiselect-on-a-filter-using-triggers/m-p/635110#M232937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi Community,&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have a product selection on my report, in which user should be able to select multiple products for all conditions except 1 condition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have written the below expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=if(GetFieldSelections([_Select Chart NM])='Top 15 &amp;amp; Bottom 15 Physicians',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF(GetSelectedCount([Brand Name])=0,SubField( Concat(DISTINCT [Brand Name], ','),',')&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,subfield(GetFieldSelections([Brand Name]),','))&amp;nbsp; ,&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'("'&amp;amp;GetFieldSelections([Brand Name],'"|"')&amp;amp;'")')&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;What this expression does is, when top 15 &amp;amp; bottom 15 physicians are selected, then the user cannot select more than 1 product. whereas on all other selections user should be able to select multiple products and&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit; font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;'("'&amp;amp;GetFieldSelections([Brand Name],'"|"')&amp;amp;'")'&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;expression comes into picture.&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This expression works fine, but the problem is when the brand name has spaces in between it acts wierd. Say a user selects brand:&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;"ABC XY"&lt;/STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;and brand&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;"EFG"&lt;/STRONG&gt;, then at the first instant&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;user can see the data for all selected products&lt;/STRONG&gt;, but when the user selects anything else, say changes time period on report etc the&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;brand selection with space, i.e "ABC XY" gets deselected and user can see data only for brand "EFG".&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;Any Suggestions?&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 16:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiselect-on-a-filter-using-triggers/m-p/635110#M232937</guid>
      <dc:creator />
      <dc:date>2014-05-15T16:14:00Z</dc:date>
    </item>
  </channel>
</rss>

