<?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: How can use WildSearh with GetfieldSelection ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-use-WildSearh-with-GetfieldSelection/m-p/1074085#M927605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the dollar sign expansion needs to return a string that embeds the search value in single quotes, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(WildMatch(Description, $(=&lt;STRONG&gt;chr(39)&amp;amp;&lt;/STRONG&gt; '*' &amp;amp; GetFieldSelections(Country) &amp;amp; '*'&lt;STRONG&gt;&amp;amp;chr(39)&lt;/STRONG&gt;)), 'OK', 'NO')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if the user may select more than one Country value, the list of values needs to be handled accordingly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(&lt;/P&gt;&lt;P&gt;WildMatch(Description, $(=chr(39)&amp;amp; '*' &amp;amp; GetFieldSelections(Country, &lt;STRONG&gt;'*'&amp;amp;chr(39)&amp;amp;','&amp;amp;chr(39)&amp;amp;'*'&lt;/STRONG&gt;) &amp;amp; '*'&amp;amp;chr(39)))&lt;/P&gt;&lt;P&gt;, 'OK'&lt;/P&gt;&lt;P&gt;, 'NO')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both solutions return OK for every Description if no Country is selected, so you may check with GetSelectedCount(Country) in the expression or chart's calculation condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create a script based solution maybe like this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/854861"&gt;Re: Keyword Mapping with Description&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Mar 2016 17:58:08 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-03-26T17:58:08Z</dc:date>
    <item>
      <title>How can use WildSearh with GetfieldSelection ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-use-WildSearh-with-GetfieldSelection/m-p/1074083#M927601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need your help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a description field that have string value. For example:&lt;/P&gt;&lt;P&gt;"The total revenue in category Country: Australia is 226.67 in 2015Q2, compared to 190.18 in 2014Q2."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to filter by Country according to the user selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I was thinking to use this &lt;SPAN style="font-size: 13.3333px;"&gt;=Pick(WildMatch(description, '*Australia*')+1,'NO','OK')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using getfieldselections but I don't know how to put * in the script:&amp;nbsp;&amp;nbsp; =Pick(WildMatch(description, GetFieldSelections(Country))+1,'NO','OK')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-use-WildSearh-with-GetfieldSelection/m-p/1074083#M927601</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can use WildSearh with GetfieldSelection ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-use-WildSearh-with-GetfieldSelection/m-p/1074084#M927603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;=Pick(WildMatch(description, $(='*' &amp;amp; GetFieldSelections(Country) &amp;amp; '*'))+1, 'NO', 'OK')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 16:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-use-WildSearh-with-GetfieldSelection/m-p/1074084#M927603</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-25T16:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can use WildSearh with GetfieldSelection ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-use-WildSearh-with-GetfieldSelection/m-p/1074085#M927605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the dollar sign expansion needs to return a string that embeds the search value in single quotes, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(WildMatch(Description, $(=&lt;STRONG&gt;chr(39)&amp;amp;&lt;/STRONG&gt; '*' &amp;amp; GetFieldSelections(Country) &amp;amp; '*'&lt;STRONG&gt;&amp;amp;chr(39)&lt;/STRONG&gt;)), 'OK', 'NO')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if the user may select more than one Country value, the list of values needs to be handled accordingly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(&lt;/P&gt;&lt;P&gt;WildMatch(Description, $(=chr(39)&amp;amp; '*' &amp;amp; GetFieldSelections(Country, &lt;STRONG&gt;'*'&amp;amp;chr(39)&amp;amp;','&amp;amp;chr(39)&amp;amp;'*'&lt;/STRONG&gt;) &amp;amp; '*'&amp;amp;chr(39)))&lt;/P&gt;&lt;P&gt;, 'OK'&lt;/P&gt;&lt;P&gt;, 'NO')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both solutions return OK for every Description if no Country is selected, so you may check with GetSelectedCount(Country) in the expression or chart's calculation condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create a script based solution maybe like this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/854861"&gt;Re: Keyword Mapping with Description&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2016 17:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-use-WildSearh-with-GetfieldSelection/m-p/1074085#M927605</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-26T17:58:08Z</dc:date>
    </item>
  </channel>
</rss>

