<?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 to filter out data interactively based on values of more than one field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586365#M739931</link>
    <description>&lt;P&gt;You could have 3 list boxes, 1 for each field.&amp;nbsp; Create a variable and use triggers to dynamically build a set analysis statement that is assigned to the variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum($(vSetAnalysisVariable) Amt)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 18:08:22 GMT</pubDate>
    <dc:creator>jwjackso</dc:creator>
    <dc:date>2019-05-29T18:08:22Z</dc:date>
    <item>
      <title>How to filter out data interactively based on values of more than one field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586334#M739930</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement to allow the user to do relatively complex filtering on a pivot table report, in particular excluding data based on the value of multiple fields.&lt;/P&gt;&lt;P&gt;E.g. in SQL terms, where A, B and C are fields:&lt;/P&gt;&lt;P&gt;A="1" AND NOT(B="2" and C="3")&lt;/P&gt;&lt;P&gt;Filtering on field A is easy using either a search object or a list box.&lt;/P&gt;&lt;P&gt;I can filter on NOT(B="2") in the same way (using Select Excluded on a search object or a list box).&lt;/P&gt;&lt;P&gt;But how can a user filter out data where B has some value AND C has some value?&lt;/P&gt;&lt;P&gt;I understand I could do this by modifying the measure (using a set expression), but users need to be able to modify these filters on the fly (hence the reason we can't apply the filter in the load script).&lt;/P&gt;&lt;P&gt;Any thoughts greatly appreciated.&lt;/P&gt;&lt;P&gt;Liam&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586334#M739930</guid>
      <dc:creator>Lumino</dc:creator>
      <dc:date>2024-11-16T20:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out data interactively based on values of more than one field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586365#M739931</link>
      <description>&lt;P&gt;You could have 3 list boxes, 1 for each field.&amp;nbsp; Create a variable and use triggers to dynamically build a set analysis statement that is assigned to the variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum($(vSetAnalysisVariable) Amt)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 18:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586365#M739931</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2019-05-29T18:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out data interactively based on values of more than one field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586399#M739932</link>
      <description>&lt;P&gt;It seems to me that you could make these selections as is in listboxes. If your concern is subsequent selections may clear incompatible previous selections, you can lock the selections as you go along.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 19:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586399#M739932</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-05-29T19:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out data interactively based on values of more than one field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586400#M739933</link>
      <description>&lt;P&gt;Thanks Jwjackso that's interesting and could work if users &lt;EM&gt;always&lt;/EM&gt; want to filter on&lt;/P&gt;&lt;P&gt;&amp;nbsp; A=&amp;lt;selected A&amp;gt; AND NOT (B=&amp;lt;selected B&amp;gt; AND C=&amp;lt;selected C&amp;gt;)&lt;/P&gt;&lt;P&gt;... but I'm really searching for a more general solution. Another user might want to do&lt;/P&gt;&lt;P&gt;NOT(A="1" and B="2") AND C="3"&lt;/P&gt;&lt;P&gt;Liam&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 19:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586400#M739933</guid>
      <dc:creator>Lumino</dc:creator>
      <dc:date>2019-05-29T19:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out data interactively based on values of more than one field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586403#M739934</link>
      <description>&lt;P&gt;Hi Rob, how can you specify NOT(B="2" AND C="3") using listboxes?&lt;/P&gt;&lt;P&gt;If I do&lt;/P&gt;&lt;P&gt;- Select 2 in listbox for B and then choose "Select Excluded"&lt;/P&gt;&lt;P&gt;- Select 3 in listbox for C and the choose "Select Excluded"&lt;/P&gt;&lt;P&gt;I have specified NOT(B="2") AND NOT(C="3")&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 19:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586403#M739934</guid>
      <dc:creator>Lumino</dc:creator>
      <dc:date>2019-05-29T19:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out data interactively based on values of more than one field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586419#M739935</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alternate_states.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12904i05DE57A828AC509F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alternate_states.PNG" alt="alternate_states.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a screen shot of a proof of concept that I did using alternate states to build a set analysis statement that I store in a variable..&amp;nbsp; The blue text box displays the set analysis statement that I build.&amp;nbsp; It is actually in use because the users wanted to create filters where they could test if an event happened in 2017 for item 1 and happened in 2018 for item 2.&amp;nbsp; The normal qlik filter would return true if item 1 or item 2 happened in 2017 or 2018.&amp;nbsp; The buttons toggle between And and Or.&amp;nbsp; I toggle the parentheses on/off to control the evaluation of the logical operators.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 20:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586419#M739935</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2019-05-29T20:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out data interactively based on values of more than one field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586434#M739936</link>
      <description>&lt;P&gt;No, it was me that was missing something. Like careful reading &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 20:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586434#M739936</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-05-29T20:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out data interactively based on values of more than one field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586579#M739937</link>
      <description>&lt;P&gt;Thanks Jwjackso, appreciate your time. I believe your general point is that one could create an interface for users to build up a complex filter expression that's stored as a variable and applied to the measure. In particular I think you've rightly identified the parenthesis as being the element "missing" from the standard tools (list box and search object) in order to be able to do what I want.&lt;/P&gt;&lt;P&gt;I am going to think about whether we could build something (e.g. maybe an SQL-&amp;gt;set expression tool).&lt;/P&gt;&lt;P&gt;One thing I'm not clear on, what does the expression look like for A="1" AND NOT (B="2" AND "C="3")?&lt;/P&gt;&lt;P&gt;Liam&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 10:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-out-data-interactively-based-on-values-of-more/m-p/1586579#M739937</guid>
      <dc:creator>Lumino</dc:creator>
      <dc:date>2019-05-30T10:45:18Z</dc:date>
    </item>
  </channel>
</rss>

