<?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: GetFieldSelections with AND condition not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578947#M739967</link>
    <description>&lt;P&gt;You can also try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SubStringCount(Concat(DISTINCT '|' &amp;amp;City &amp;amp; '|'), '|Boston|') = 1
or
SubStringCount(Concat(DISTINCT '|' &amp;amp;City &amp;amp; '|'), '|Washington|') = 1&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 10 May 2019 12:09:42 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-05-10T12:09:42Z</dc:date>
    <item>
      <title>GetFieldSelections with AND condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578888#M739964</link>
      <description>&lt;P&gt;Hi , I have a listbox called City and it has few city names.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want one button to show or hide if city selection is either Boston or Washington , or both.&lt;/P&gt;&lt;P&gt;so i but the below condition in the button;&lt;/P&gt;&lt;P&gt;=if(GetFieldSelections(City)='Boston' or GetFieldSelections(City)= 'Washington',1,&lt;BR /&gt;if(GetFieldSelections(City)='Boston' and GetFieldSelections(City)= 'Washington',1,0))&lt;/P&gt;&lt;P&gt;It works if either one city is selected but do not work if Boston and Washington are selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thought please.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ashis&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578888#M739964</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2024-11-16T03:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with AND condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578906#M739965</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;try below one&lt;BR /&gt;&lt;BR /&gt;=if(GetFieldSelections(&lt;SPAN&gt;City&lt;/SPAN&gt;)='&lt;SPAN&gt;Boston&lt;/SPAN&gt;' or GetFieldSelections(&lt;SPAN&gt;City&lt;/SPAN&gt;)='&lt;SPAN&gt;Washington&lt;/SPAN&gt;' or&lt;BR /&gt;GetFieldSelections(&lt;SPAN&gt;City&lt;/SPAN&gt;)='&lt;SPAN&gt;Boston&lt;/SPAN&gt;, &lt;SPAN&gt;Washington&lt;/SPAN&gt;',1,0)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Sultan&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 11:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578906#M739965</guid>
      <dc:creator>sultanam</dc:creator>
      <dc:date>2019-05-10T11:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with AND condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578931#M739966</link>
      <description>&lt;P&gt;Maybe this approach is more suitable:&lt;/P&gt;&lt;P&gt;wildmatch(concat(distinct City, ','), '*Boston*', '*Washington*')&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 11:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578931#M739966</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-05-10T11:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with AND condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578947#M739967</link>
      <description>&lt;P&gt;You can also try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SubStringCount(Concat(DISTINCT '|' &amp;amp;City &amp;amp; '|'), '|Boston|') = 1
or
SubStringCount(Concat(DISTINCT '|' &amp;amp;City &amp;amp; '|'), '|Washington|') = 1&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 May 2019 12:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578947#M739967</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-10T12:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with AND condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578960#M739968</link>
      <description>Thank you so much, it works.</description>
      <pubDate>Fri, 10 May 2019 12:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578960#M739968</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2019-05-10T12:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with AND condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578961#M739969</link>
      <description>Thank you for your reply. it works.</description>
      <pubDate>Fri, 10 May 2019 12:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578961#M739969</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2019-05-10T12:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with AND condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578962#M739970</link>
      <description>&lt;P&gt;Thank you Marcus, it works.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 12:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578962#M739970</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2019-05-10T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with AND condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578963#M739971</link>
      <description>&lt;P&gt;Thank you Sunny, it works also.&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 12:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-AND-condition-not-working/m-p/1578963#M739971</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2019-05-10T12:42:54Z</dc:date>
    </item>
  </channel>
</rss>

