<?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: Filtering via AND + OR in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filtering-via-AND-OR/m-p/1253063#M25308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample of what you have and provide details of what you are looking to do with that sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2017 10:37:41 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-31T10:37:41Z</dc:date>
    <item>
      <title>Filtering via AND + OR</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-via-AND-OR/m-p/1253062#M25307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;I would like to ask you for the first time with a Qlik Sense question, which I can not solve currently.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Database is a table from which I would like to select 2 fields in the visualization. The input of all filters must be optional.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;A simplified example of the data structure looks like this (all fields are of alphanumeric type):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Field1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Order No.&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Each order can have n methods with one result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;STRONG style="font-size: 14pt;"&gt;My current app&lt;/STRONG&gt; provides the following query options:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Display data where:&amp;nbsp; (test1 with result1) AND (test2 with result2) AND ......... (test6 with result 6)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;(So ​​I can query 6 different tests with 6 diffrent results)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;I solved this by a 6-times load of the identical table, whereby I renamed the fields in the loadskript.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;The app works - even if I do not like this 6-times-load of identical data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;STRONG style="font-size: 14pt;"&gt;Now to my extension:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;In addition to the 12 (optional) AND filters (6 methods with their 6 results), I also want to add the possibility of 12 (optional) OR filters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;eg.:&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;(&amp;nbsp;&amp;nbsp;&amp;nbsp; (test1 with result1) AND (test2 with result2) AND .......&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&amp;nbsp;&amp;nbsp;&amp;nbsp; OR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( &lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;(test7 with result7)&amp;nbsp; AND&amp;nbsp;&amp;nbsp; (test8 with result8)&amp;nbsp; AND ....&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;STRONG style="font-size: 14pt;"&gt;Solution:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;An experiment in the visualization using IF works to link two OR fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;If (WildMatch (GetFieldSelections (method1), '*' &amp;amp; result1 &amp;amp; '*') or WildMatch (GetFieldSelections (method2), '*' &amp;amp; result2 &amp;amp; '*'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;However, using this type of solution for 12 -UND + 12 OR-linkages is only theoretical, since this construct would no longer be overlooked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;"Set Analysis" only works for aggregate functions. I don't beleave it's possible to use it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;STRONG style="font-size: 14pt;"&gt;Interesting Link:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;I found this link:&amp;nbsp; &lt;A href="http://www.qlikfix.com/2013/10/23/and-or-mode-selections-in-qlikview/" title="http://www.qlikfix.com/2013/10/23/and-or-mode-selections-in-qlikview/"&gt;http://www.qlikfix.com/2013/10/23/and-or-mode-selections-in-qlikview/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Very interesting. But as a beginner i have my problems to understand &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;And i don't wont to imagine how complex the solution would be if the AND and OR&amp;nbsp; (at the same time !) is implemented. But of course it would be interesting if it would work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Does anyone have a solution approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Thank you very much&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 07:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-via-AND-OR/m-p/1253062#M25307</guid>
      <dc:creator>bernhard_koehle</dc:creator>
      <dc:date>2017-01-30T07:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering via AND + OR</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-via-AND-OR/m-p/1253063#M25308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample of what you have and provide details of what you are looking to do with that sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 10:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-via-AND-OR/m-p/1253063#M25308</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-31T10:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering via AND + OR</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-via-AND-OR/m-p/1253064#M25309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;here is an example application with 12 fields which are linked by AND.&lt;/P&gt;&lt;P&gt;For the small amout of data the 12 filters are oversized&lt;/P&gt;&lt;P&gt;You can ask for e.g. orders with&amp;nbsp; (Test1=FL and result1=100)&amp;nbsp; and (Test2=NA and result2=10)&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; order 200&lt;/P&gt;&lt;P&gt;In addition I am looking for the next 12 filters which are OR-linked to the first 12-filters.&lt;/P&gt;&lt;P&gt;I want to ask: orders with&amp;nbsp; (&amp;nbsp;&amp;nbsp;&amp;nbsp; (Test1=FL and result1=100)&amp;nbsp; and (Test2=NA and result2=10)&amp;nbsp; ) OR&amp;nbsp;&amp;nbsp;&amp;nbsp; (&amp;nbsp;&amp;nbsp;&amp;nbsp; (Test7=NA and result7=10)&amp;nbsp; and (Test8=K and result8=20) and (Test9=CA)&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; order 100 and 200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 11:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-via-AND-OR/m-p/1253064#M25309</guid>
      <dc:creator>bernhard_koehle</dc:creator>
      <dc:date>2017-01-31T11:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering via AND + OR</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-via-AND-OR/m-p/1253065#M25310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i found a solution for the problem.&lt;/P&gt;&lt;P&gt;Look into: &lt;A href="https://community.qlik.com/thread/269649"&gt;Solution for filtering data by using AND + OR at the same time in Qlik Sense 3.2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is a sample-app for better understanding.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 05:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-via-AND-OR/m-p/1253065#M25310</guid>
      <dc:creator>bernhard_koehle</dc:creator>
      <dc:date>2017-08-02T05:03:53Z</dc:date>
    </item>
  </channel>
</rss>

