<?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 Get Wildmatch() to search through only certain rows in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Get-Wildmatch-to-search-through-only-certain-rows/m-p/1997440#M82609</link>
    <description>&lt;P&gt;Let's say I've a spreadsheet with hundreds of thousands of rows that look something like this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="50%"&gt;&lt;STRONG&gt;Items&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Fruits&lt;/TD&gt;
&lt;TD width="50%"&gt;Apple, Banana, Cantaloupe, Durian&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Companies&lt;/TD&gt;
&lt;TD width="50%"&gt;Apple, Samsung, Nokia, Blackberry&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Fruits&lt;/TD&gt;
&lt;TD width="50%"&gt;Blackberry, Blueberry, Orange, Lemon&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've a table within my Qlik Sense dashboard that shows the "Items" column, but only where "Category" equals "Fruits". The number of rows where "Category" = "Fruits" is significantly smaller (~100) than the hundreds of thousands of rows I have in total.&lt;/P&gt;
&lt;P&gt;I also have a input field within the dashboard that allows users to filter the "Items" column using a keyword. If there's no input, the "Items" column will not be shown. My expression for this "Items" column looks something like this currently:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;=if(Wildmatch(Items, '*$(=GetFieldSelections([Input Field]))*'), Items, Null())&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, this expression seems to makes wildmatch() look through every single hundreds of thousands of rows despite the prior filter that I've already set in place. I suspect this because the wildmatch() search takes just as long (i.e. very long) regardless of whether or not there is any prior filtering done on the "Category" column.&lt;/P&gt;
&lt;P&gt;How can I make wildmatch() search through just the 100 rows where "Category" = "Fruit", instead of every single row?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(P.S. I'm aware that Qlik Sense tables already have a search function. I'm over-simplifying my problem here. I really do need to use wildmatch() and have it search through only specific rows.)&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 07:42:20 GMT</pubDate>
    <dc:creator>wanderingcatto</dc:creator>
    <dc:date>2022-10-27T07:42:20Z</dc:date>
    <item>
      <title>Get Wildmatch() to search through only certain rows</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Wildmatch-to-search-through-only-certain-rows/m-p/1997440#M82609</link>
      <description>&lt;P&gt;Let's say I've a spreadsheet with hundreds of thousands of rows that look something like this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="50%"&gt;&lt;STRONG&gt;Items&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Fruits&lt;/TD&gt;
&lt;TD width="50%"&gt;Apple, Banana, Cantaloupe, Durian&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Companies&lt;/TD&gt;
&lt;TD width="50%"&gt;Apple, Samsung, Nokia, Blackberry&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Fruits&lt;/TD&gt;
&lt;TD width="50%"&gt;Blackberry, Blueberry, Orange, Lemon&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've a table within my Qlik Sense dashboard that shows the "Items" column, but only where "Category" equals "Fruits". The number of rows where "Category" = "Fruits" is significantly smaller (~100) than the hundreds of thousands of rows I have in total.&lt;/P&gt;
&lt;P&gt;I also have a input field within the dashboard that allows users to filter the "Items" column using a keyword. If there's no input, the "Items" column will not be shown. My expression for this "Items" column looks something like this currently:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;=if(Wildmatch(Items, '*$(=GetFieldSelections([Input Field]))*'), Items, Null())&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, this expression seems to makes wildmatch() look through every single hundreds of thousands of rows despite the prior filter that I've already set in place. I suspect this because the wildmatch() search takes just as long (i.e. very long) regardless of whether or not there is any prior filtering done on the "Category" column.&lt;/P&gt;
&lt;P&gt;How can I make wildmatch() search through just the 100 rows where "Category" = "Fruit", instead of every single row?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(P.S. I'm aware that Qlik Sense tables already have a search function. I'm over-simplifying my problem here. I really do need to use wildmatch() and have it search through only specific rows.)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 07:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Wildmatch-to-search-through-only-certain-rows/m-p/1997440#M82609</guid>
      <dc:creator>wanderingcatto</dc:creator>
      <dc:date>2022-10-27T07:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get Wildmatch() to search through only certain rows</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Wildmatch-to-search-through-only-certain-rows/m-p/1999077#M82753</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;Is it possible to you to create a reduced child table only with Fruits records and splitting Items in single values ?&lt;/P&gt;
&lt;P&gt;This will work much faster:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ChildTable:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;Category,&lt;/P&gt;
&lt;P&gt;SubField(Items, ',') as SingleItem&lt;/P&gt;
&lt;P&gt;RESIDENT &amp;lt;YourTable&amp;gt;&lt;/P&gt;
&lt;P&gt;where Category='Fruits';&lt;/P&gt;
&lt;P&gt;In this way, perhaps you don't need to use an Input Box and WildMatch() to search, just a standar filter pane pointing to&amp;nbsp;&lt;STRONG&gt;SingleItem field.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;Fernando&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 14:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Wildmatch-to-search-through-only-certain-rows/m-p/1999077#M82753</guid>
      <dc:creator>Fernando_Fabregas</dc:creator>
      <dc:date>2022-11-01T14:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get Wildmatch() to search through only certain rows</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Wildmatch-to-search-through-only-certain-rows/m-p/1999583#M82786</link>
      <description>&lt;P&gt;If your expression is really an expression you may use a set analysis for this task like:&lt;/P&gt;
&lt;P&gt;only({&amp;lt; Items = {"*$(=GetFieldSelections([Input Field]))*"}&amp;gt;} Items)&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 12:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Wildmatch-to-search-through-only-certain-rows/m-p/1999583#M82786</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-02T12:50:51Z</dc:date>
    </item>
  </channel>
</rss>

