<?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: Select in field not working when no data equals the selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-in-field-not-working-when-no-data-equals-the-selection/m-p/473397#M485634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I understand you correctly. But try putting your list of possible values in a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vList = 'A1','A2','A3','B1','B2','B3','C1','C2','C3'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use and expression like this as search string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(count({&amp;lt;&lt;EM&gt;MyDim&lt;/EM&gt;={$(vList)}&amp;gt;} distinct &lt;EM&gt;MyDim&lt;/EM&gt;)=substringcount(vList,',')+1,'(' &amp;amp; replace(vList,',','|') &amp;amp; ')' )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2013 18:42:30 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-04-22T18:42:30Z</dc:date>
    <item>
      <title>Select in field not working when no data equals the selection</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-field-not-working-when-no-data-equals-the-selection/m-p/473396#M485633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I am using select in field but have found that when the value I try to select does not exist in the data set I get all other values that do exist rather than nothing. I have possible values A1,A2,A3,B1,B2,B3,C1,C2,C3 but if other selections "reduce" this list and then I try to use a button which selects one of the values not now valid then I get ALL the other values rather than nothing or an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I correct this? I've tried locking and unlocking and bookmarks in the actions but they don't correct this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 10:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-field-not-working-when-no-data-equals-the-selection/m-p/473396#M485633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-22T10:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select in field not working when no data equals the selection</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-field-not-working-when-no-data-equals-the-selection/m-p/473397#M485634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I understand you correctly. But try putting your list of possible values in a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vList = 'A1','A2','A3','B1','B2','B3','C1','C2','C3'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use and expression like this as search string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(count({&amp;lt;&lt;EM&gt;MyDim&lt;/EM&gt;={$(vList)}&amp;gt;} distinct &lt;EM&gt;MyDim&lt;/EM&gt;)=substringcount(vList,',')+1,'(' &amp;amp; replace(vList,',','|') &amp;amp; ')' )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 18:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-field-not-working-when-no-data-equals-the-selection/m-p/473397#M485634</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-22T18:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select in field not working when no data equals the selection</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-field-not-working-when-no-data-equals-the-selection/m-p/473398#M485635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for that impressive formula but it doesn't do what I need &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;. I'll try to explain again what I'm stuck on. All possible values for my field [Buying Position] are&amp;nbsp; 'A1','A2','A3','B1','B2','B3','C1','C2','C3' but some customers once selected only have possible values of for example 'A1','B1','C1' and if I use select in field on buying position for one of these customers and try to select 'C2' then rather than get an error or blank the selection gives me&amp;nbsp; 'A1','B1','C1' instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for trying, any other ideas are greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Tms Rmn;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 09:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-field-not-working-when-no-data-equals-the-selection/m-p/473398#M485635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-23T09:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select in field not working when no data equals the selection</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-field-not-working-when-no-data-equals-the-selection/m-p/473399#M485636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's probably because trying to select an excluded value results in no selection in a field, and no selection equals to "all possible values visible".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As to how to deal with this, it depends on the exact situation. I would probably check whether anything got selected (using GetSelectedCount function), and if not, would either not allow the user to proceed, or hide any relevant objects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 10:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-field-not-working-when-no-data-equals-the-selection/m-p/473399#M485636</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2013-04-23T10:28:47Z</dc:date>
    </item>
  </channel>
</rss>

