<?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: Create a filter using key terms in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-a-filter-using-key-terms/m-p/2464422#M99100</link>
    <description>&lt;P&gt;There are multiple ways to solve this problem. I believe you are looking for something more controlled so maybe you can use Button Actions to do that.&lt;/P&gt;
&lt;P&gt;So, here is my Load Script. I'm loading data from the Snowflake sample database and a custom list of Terms. Those terms will be used in our search:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LIB CONNECT TO [SnowFlakeSample];

[CUSTOMER]:
SELECT "C_CUSTKEY",
	"C_NAME",
	"C_ADDRESS",
	"C_NATIONKEY",
	"C_PHONE",
	"C_ACCTBAL",
	"C_MKTSEGMENT",
	"C_COMMENT"
FROM "SNOWFLAKE_SAMPLE_DATA"."TPCH_SF1"."CUSTOMER";

FilterTerms:
LOAD * INLINE [
Term
nod
regular
beans
BUILDING
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this is the user interface:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_0-1718930942581.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168299iCF51A2A69CEDB03E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_0-1718930942581.png" alt="marksouzacosta_0-1718930942581.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The button has two actions, one search for each field that I want to search the selected value - in your case will be three:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_1-1718931808565.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168300i7750CC08C26A864C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_1-1718931808565.png" alt="marksouzacosta_1-1718931808565.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the action configuration:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_2-1718931834480.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168301i71991CC48C26FAFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_2-1718931834480.png" alt="marksouzacosta_2-1718931834480.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is the Value expression:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;='*' &amp;amp; MaxString(Term) &amp;amp; '*'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I setup it to get the latest value in alphabetical order available in the Term field (that is why the MaxString).&lt;BR /&gt;You can manipulate it to support multiple Terms using some concatenate function.&lt;/P&gt;
&lt;P&gt;If you select beans in Term and click on Search button, it will filter the values on column C_COMMENT or C_MKTSEGMENT:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_3-1718932275740.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168302i9B9E457A815912A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_3-1718932275740.png" alt="marksouzacosta_3-1718932275740.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 01:11:23 GMT</pubDate>
    <dc:creator>marksouzacosta</dc:creator>
    <dc:date>2024-06-21T01:11:23Z</dc:date>
    <item>
      <title>Create a filter using key terms</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-filter-using-key-terms/m-p/2464357#M99095</link>
      <description>&lt;P&gt;I have a data that is not structured. I want to create a fixed list of terms that will search the value in different fields.&lt;BR /&gt;For exemple, the list is based in key words of fruits (apple, banana and orange). So, when I select one of these fruits, it will search the columns [column A] [column B] [column C]. If they have any value that correspond to it, it will be filtered in.&lt;BR /&gt;Column A is not structured at all. It is a summary, so, it will have complete phrases, like. "I like banana".&lt;BR /&gt;And if the filter finds the value on any of the 3 columns, it should filter in.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 18:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-filter-using-key-terms/m-p/2464357#M99095</guid>
      <dc:creator>rmarquescampos</dc:creator>
      <dc:date>2024-06-20T18:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a filter using key terms</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-filter-using-key-terms/m-p/2464417#M99099</link>
      <description>&lt;P&gt;Try using the smart search for this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 00:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-filter-using-key-terms/m-p/2464417#M99099</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2024-06-21T00:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create a filter using key terms</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-filter-using-key-terms/m-p/2464422#M99100</link>
      <description>&lt;P&gt;There are multiple ways to solve this problem. I believe you are looking for something more controlled so maybe you can use Button Actions to do that.&lt;/P&gt;
&lt;P&gt;So, here is my Load Script. I'm loading data from the Snowflake sample database and a custom list of Terms. Those terms will be used in our search:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LIB CONNECT TO [SnowFlakeSample];

[CUSTOMER]:
SELECT "C_CUSTKEY",
	"C_NAME",
	"C_ADDRESS",
	"C_NATIONKEY",
	"C_PHONE",
	"C_ACCTBAL",
	"C_MKTSEGMENT",
	"C_COMMENT"
FROM "SNOWFLAKE_SAMPLE_DATA"."TPCH_SF1"."CUSTOMER";

FilterTerms:
LOAD * INLINE [
Term
nod
regular
beans
BUILDING
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this is the user interface:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_0-1718930942581.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168299iCF51A2A69CEDB03E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_0-1718930942581.png" alt="marksouzacosta_0-1718930942581.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The button has two actions, one search for each field that I want to search the selected value - in your case will be three:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_1-1718931808565.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168300i7750CC08C26A864C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_1-1718931808565.png" alt="marksouzacosta_1-1718931808565.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the action configuration:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_2-1718931834480.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168301i71991CC48C26FAFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_2-1718931834480.png" alt="marksouzacosta_2-1718931834480.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is the Value expression:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;='*' &amp;amp; MaxString(Term) &amp;amp; '*'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I setup it to get the latest value in alphabetical order available in the Term field (that is why the MaxString).&lt;BR /&gt;You can manipulate it to support multiple Terms using some concatenate function.&lt;/P&gt;
&lt;P&gt;If you select beans in Term and click on Search button, it will filter the values on column C_COMMENT or C_MKTSEGMENT:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_3-1718932275740.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168302i9B9E457A815912A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_3-1718932275740.png" alt="marksouzacosta_3-1718932275740.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 01:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-filter-using-key-terms/m-p/2464422#M99100</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-06-21T01:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create a filter using key terms</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-filter-using-key-terms/m-p/2466071#M99224</link>
      <description>&lt;P&gt;That was what i was looking for. Do you know how can i do that concatenate function? I'm new to qlik sense and I'm having some trouble doing it.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 13:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-filter-using-key-terms/m-p/2466071#M99224</guid>
      <dc:creator>rmarquescampos</dc:creator>
      <dc:date>2024-06-27T13:04:53Z</dc:date>
    </item>
  </channel>
</rss>

