<?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: Multiple input variables to select Dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2006310#M83274</link>
    <description>&lt;P&gt;In QlikView you could put your expression within an expression in a table-chart without defining a label for it and then by hovering with the mouse on the label QlikView showed how the expression is resolved - means here how are the variables resolved. Now you could check how it looked like when there is a search-string and if there is none respectively the '' or = null() or anything else. Just one part with a single expression should be enough to check the logic and to adjust the values respectively the syntax.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 08:49:39 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-11-18T08:49:39Z</dc:date>
    <item>
      <title>Multiple input variables to select Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2005434#M83205</link>
      <description>&lt;P&gt;&lt;LI-PRODUCT title="QlikView" id="qlikView"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a straight table chart that displays catalogue item descriptions.&lt;/P&gt;
&lt;P&gt;I want the user to be able to filter the description using some Input Boxes.&amp;nbsp; The user can enter 2 sets of inputs.&lt;/P&gt;
&lt;P&gt;vSearch1 and vSearch2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vSearch3 and vSearch4&lt;/P&gt;
&lt;P&gt;I want to display the result of both.&lt;/P&gt;
&lt;P&gt;WildMatch of&amp;nbsp;vSearch1 and&amp;nbsp;vSearch2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vSearch1 = 'filter', vSearch2 = 'element', the result would be a description that contains both 'filter' and 'element' (not 'filter' or 'element').&lt;/P&gt;
&lt;P&gt;and the result of WildMatch of&amp;nbsp;&amp;nbsp;vSearch3 and vSearch4 - same idea for this set.&lt;/P&gt;
&lt;P&gt;The overall result would display the results of the 2 searches together in the one list.&lt;/P&gt;
&lt;P&gt;Any or all of the variables can be blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;= if((vSearch1 &amp;amp; vSearch2 &amp;amp; vSearch3 &amp;amp; vSearch4 ) = '', Descr,&lt;BR /&gt;if((WildMatch(Descr, '*'&amp;amp;vSearch1&amp;amp;'*') and WildMatch(Descr, '*'&amp;amp;vSearch2&amp;amp;'*')) or&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(WildMatch(Descr, '*'&amp;amp;Search3&amp;amp;'*') and WildMatch(Descr, '*'&amp;amp;Search4&amp;amp;'*'))&lt;BR /&gt;, Descr, null())&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;This code yields the correct result only when there is a value in each of the 2 sets.&amp;nbsp; That is, vSearch1 and vSearch3 are not blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 16:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2005434#M83205</guid>
      <dc:creator>johnb023</dc:creator>
      <dc:date>2022-11-16T16:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input variables to select Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2005919#M83241</link>
      <description>&lt;P&gt;What happens now?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if((WildMatch(Descr, '*vSearch1*') and WildMatch(Descr, '*vSearch2*')) or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(WildMatch(Descr, '*vSearch3*') and WildMatch(Descr, '*vSearch4*'))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;, Descr, null())&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 14:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2005919#M83241</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-17T14:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input variables to select Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2005937#M83244</link>
      <description>&lt;P&gt;It returns null/blank values for the description regardless of which combination of vSearch? is used.&lt;/P&gt;
&lt;P&gt;I should add that I have a button that resets the values of the variables to '' (2 single quotes).&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 14:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2005937#M83244</guid>
      <dc:creator>johnb023</dc:creator>
      <dc:date>2022-11-17T14:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input variables to select Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2005941#M83245</link>
      <description>&lt;P&gt;That results not in an empty variable. What is if you change the '' to really nothing?&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 14:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2005941#M83245</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-17T14:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input variables to select Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2005991#M83252</link>
      <description>&lt;P&gt;1. If I change the button reset from '' to null(), then I get blanks for the description even when nothing is entered in the input boxes.&amp;nbsp; There is a "-" displayed in the input boxes.&amp;nbsp; In this case I use:&lt;/P&gt;
&lt;P&gt;= if(IsNull(vSearch1 &amp;amp; vSearch2 &amp;amp; vSearch3 &amp;amp; vSearch4, Descr,&amp;nbsp; &amp;nbsp; &amp;nbsp;...)&lt;/P&gt;
&lt;P&gt;to show all descriptions when nothing is in the input boxes.&amp;nbsp; When I use '' as the reset value, I get a full list of descriptions.&lt;/P&gt;
&lt;P&gt;2. If I comment out the line above and only look for results from the input boxes, I get blank descriptions regardless of whether I use '' or null() as the reset value.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 16:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2005991#M83252</guid>
      <dc:creator>johnb023</dc:creator>
      <dc:date>2022-11-17T16:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input variables to select Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2006100#M83260</link>
      <description>&lt;P&gt;I had a thought.&amp;nbsp; Maybe this is obvious to others, however...&lt;/P&gt;
&lt;P&gt;The reason the list does not change until the 2nd search set has a value is:&lt;/P&gt;
&lt;P&gt;Something1 OR * = *.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not until the 2nd search set has a value does the list change:&amp;nbsp; Something1 OR Something2.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 20:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2006100#M83260</guid>
      <dc:creator>johnb023</dc:creator>
      <dc:date>2022-11-17T20:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input variables to select Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2006310#M83274</link>
      <description>&lt;P&gt;In QlikView you could put your expression within an expression in a table-chart without defining a label for it and then by hovering with the mouse on the label QlikView showed how the expression is resolved - means here how are the variables resolved. Now you could check how it looked like when there is a search-string and if there is none respectively the '' or = null() or anything else. Just one part with a single expression should be enough to check the logic and to adjust the values respectively the syntax.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 08:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2006310#M83274</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-18T08:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input variables to select Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2006474#M83291</link>
      <description>&lt;P&gt;That is a very good tip.&amp;nbsp; Thank you.&amp;nbsp; I am going to try it out.&lt;/P&gt;
&lt;P&gt;In the meantime, I believe I resolved this using brute force.&lt;/P&gt;
&lt;P&gt;= if((vSearch1 &amp;amp; vSearch2 &amp;amp; vSearch3 &amp;amp; vSearch4) = '', Descr, // if empty searches then show all&lt;/P&gt;
&lt;P&gt;if((vSearch3 &amp;amp; vSearch4) = '', // if 2nd search set is empty then only use 1st search set&lt;BR /&gt;if((WildMatch( Descr, '*'&amp;amp;vSearch1&amp;amp;'*') and WildMatch(Descr, '*'&amp;amp;vSearch2&amp;amp;'*'),&lt;BR /&gt;&lt;BR /&gt;if(vSearch1 &amp;amp; vSearch2 = '', // if 1st search set is empty then only use 2nd search set&lt;BR /&gt;if((WildMatch( Descr, '*'&amp;amp;vSearch3&amp;amp;'*') and WildMatch(Descr, '*'&amp;amp;vSearch4&amp;amp;'*')), Descr), &lt;BR /&gt;&lt;BR /&gt;if((WildMatch( Descr, '*'&amp;amp;vSearch1&amp;amp;'*') and WildMatch(Descr, '*'&amp;amp;vSearch2&amp;amp;'*')) //if both sets have search criteria use both&lt;BR /&gt;or (WildMatch( Descr, '*'&amp;amp;vSearch3&amp;amp;'*') and WildMatch(Descr, '*'&amp;amp;vSearch4&amp;amp;'*'))&lt;BR /&gt;, Descr, null()&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;) &lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 14:39:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-input-variables-to-select-Dimension/m-p/2006474#M83291</guid>
      <dc:creator>johnb023</dc:creator>
      <dc:date>2022-11-18T14:39:28Z</dc:date>
    </item>
  </channel>
</rss>

