<?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: Ideas on adding complex filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875895#M305889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great idea. I've implemented the fields, but am having difficulty AND'ing them in the UI. I created a button and added the 3 filters as Actions, but it acts as if it is OR'ed. i.e. - It filters on Action 1 and Action 2, but if it finds no hits for Action 3, it just shows records for Action 1 and 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expected behavior of an AND dictates that it should thus show no records (or at least that's the behavior I'm looking for). Any advice?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2015 21:49:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-21T21:49:12Z</dc:date>
    <item>
      <title>Ideas on adding complex filter</title>
      <link>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875889#M305883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a question on &lt;STRONG&gt;where&lt;/STRONG&gt; and &lt;STRONG&gt;how&lt;/STRONG&gt; a filter logic should be applied to a dashboard I am developing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The filter logic in the original report that I am replacing is a complex filter that goes something like:&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;1 AND 2 AND ((3 AND 4) OR (5 AND 6)) AND 7 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where each number is a filter (e.g. 1 = OpportunityRecordType='Renewal' or 'Standard' or 'Partner')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm stuck if I should implement this in the load, as a button on the UI that applies these, as a trigger event, or what. It's been bugging me for a week now, advice would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 04:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875889#M305883</guid>
      <dc:creator />
      <dc:date>2015-05-18T04:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ideas on adding complex filter</title>
      <link>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875890#M305884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try to apply this within the script in a field which the user could simply select within the UI. A part like your 1 could be solve with a match() like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;match(OpportunityRecordType, 'Renewal', 'Standard', 'Partner')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 15:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875890#M305884</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-18T15:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ideas on adding complex filter</title>
      <link>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875891#M305885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion. I considered it, but a lot of the Boolean logic takes fields from different tables. I think that'd create a Frankenstein table, wouldn't it? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 16:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875891#M305885</guid>
      <dc:creator />
      <dc:date>2015-05-18T16:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ideas on adding complex filter</title>
      <link>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875892#M305886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes but if the logic of the filter is complex, you have to choose between complex in script or complex in the user interface; usually, in similar situations I choose the script; if you want and can, post the logic, fields and tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 19:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875892#M305886</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-05-18T19:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ideas on adding complex filter</title>
      <link>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875893#M305887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Boolean expression is as follows:&lt;/P&gt;&lt;P&gt;1 AND 2 AND ((3 AND 4) OR (5 AND 6)) AND 7&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1. OpportunityRecordType = 'Renewal' or 'Standard' or 'Partner Deal'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2. SalesStage = '01 - UC' or '02 - VO' or '03 - QO' or '04A - DS' or '04B - PS' or '05 - NC' or '06- WDE' or '6 - WDE' or 'Lost'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;3. OpportunityType = 'Renewal'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;4. SalesMotion = 'New Solution'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;5. Opportunity Type != 'Renewal'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;6. SalesMotion = 'Care Pack' or 'Day 1' or 'Per Event' or 'New Solution' or 'Renewal' or 'Conversion' or 'Bus Type 'W''&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;7. PipelineExclusion != 'Y'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all of that, PLUS:&lt;/P&gt;&lt;P&gt;CampaignName={*NEWLead* | *NewLead* | *Employee Lead Gen* | TM;* | LOGO*}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot post the entire table structure, as it's quite large, but here is a snippet with some of the corresponding tables and the fields corresponding to the above logic highlighted.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DashboardTableView.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86826_DashboardTableView.PNG" style="height: 414px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 19:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875893#M305887</guid>
      <dc:creator />
      <dc:date>2015-05-18T19:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ideas on adding complex filter</title>
      <link>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875894#M305888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- flag1 on Opportunity table: 1 and 2 and 7&lt;/P&gt;&lt;P&gt;- flag2 on OpportunitItem: (3 or 4) and (5 or 6)&lt;/P&gt;&lt;P&gt;to create this flag you need a join to add OpportunityType in OppurtunityItem (or applymap) &lt;/P&gt;&lt;P&gt;I suppose the relation OpportunityItem : Opportunity is N : 1 &lt;/P&gt;&lt;P&gt;- flag3 on Campaign&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;flag1&lt;/P&gt;&lt;P&gt;match(OpportunityRecordType, 'Renewal', 'Standard', 'Partner Deal')&lt;/P&gt;&lt;P&gt;and match(SalesStage, '01 - UC', '02 - VO', '03 - QO', '04A - DS', '04B - PS', '05 - NC', '06- WDE', '6 - WDE', 'Lost')&lt;/P&gt;&lt;P&gt;and not match (PipelineExclusion, 'Y')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flag2&lt;/P&gt;&lt;P&gt;(OpportunityTypeBis = 'Renewal' or SalesMotion = 'New Solution')&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;(OpportunityTypeBis &amp;lt;&amp;gt; 'Renewal' or match(SalesMotion, 'Care Pack', 'Day 1', 'Per Event', 'New Solution', 'Renewal', 'Conversion', 'Bus Type W'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flag3&lt;/P&gt;&lt;P&gt;wildmatch(CampaignName, '*NEWLead*', '*NewLead*', '*Employee Lead Gen*', 'TM;*', 'LOGO*')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;----------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;in the user interface you can AND the 3 flags&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another solution could be to only add one (or two) flag but I can't find the right table, maybe OpportunityItem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 21:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875894#M305888</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-05-18T21:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ideas on adding complex filter</title>
      <link>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875895#M305889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great idea. I've implemented the fields, but am having difficulty AND'ing them in the UI. I created a button and added the 3 filters as Actions, but it acts as if it is OR'ed. i.e. - It filters on Action 1 and Action 2, but if it finds no hits for Action 3, it just shows records for Action 1 and 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expected behavior of an AND dictates that it should thus show no records (or at least that's the behavior I'm looking for). Any advice?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 21:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ideas-on-adding-complex-filter/m-p/875895#M305889</guid>
      <dc:creator />
      <dc:date>2015-05-21T21:49:12Z</dc:date>
    </item>
  </channel>
</rss>

