<?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: Elaborate filtering in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978632#M979173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. Try this&lt;/P&gt;&lt;P&gt;aggr(expression,dimension1,dimension2,...)&lt;/P&gt;&lt;P&gt;in this case dimensions separate you expression on necessary groups.&lt;/P&gt;&lt;P&gt;expression is sum(...) etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2015 12:43:00 GMT</pubDate>
    <dc:creator>pokassov</dc:creator>
    <dc:date>2015-08-24T12:43:00Z</dc:date>
    <item>
      <title>Elaborate filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978629#M979170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very new to QlikView and a little bit overwhelmed by the quantity of learning resources...&lt;/P&gt;&lt;P&gt;I'm using a table with some test data and I would like to filter the content based on elaborate rules, like:&lt;/P&gt;&lt;P&gt;- field x should be in values v1 or v2 or v3 (like a {$in:[]} in MongoDB)&lt;/P&gt;&lt;P&gt;- field y should start with abc or def (so I guess, using some kind of regex)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, I guess that I would implement that with Expressions, but I would appreciate some step by step guide. Any pointer to an existing tutorial would be also welcome of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 05:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978629#M979170</guid>
      <dc:creator />
      <dc:date>2015-08-24T05:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Elaborate filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978630#M979171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&amp;nbsp; * INLINE&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;z,x,y,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;1, v1, abcasda&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;2, v2, xyzwqe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;3, v3, sdlkjf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;sum({($&amp;lt;y={'abc*'}&amp;gt;+$&amp;lt;y={'xyz*'}&amp;gt;)*$&amp;lt;x={'v1','v2','v3'}&amp;gt;}z)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="14.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96812_14.png" style="height: 167px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 12:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978630#M979171</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-08-24T12:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Elaborate filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978631#M979172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this helps greatly!&lt;/P&gt;&lt;P&gt;Is it possible to put that in a Calculated Dimension, so that it has a value of 'OK' for example if the conditions are met? It would make it easy to filter on the rows that meet the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 12:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978631#M979172</guid>
      <dc:creator />
      <dc:date>2015-08-24T12:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Elaborate filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978632#M979173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. Try this&lt;/P&gt;&lt;P&gt;aggr(expression,dimension1,dimension2,...)&lt;/P&gt;&lt;P&gt;in this case dimensions separate you expression on necessary groups.&lt;/P&gt;&lt;P&gt;expression is sum(...) etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 12:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978632#M979173</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-08-24T12:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Elaborate filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978633#M979174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Last question: what if I want to get the {&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'v1','v2','v3'} value list from some other field and not hard-code it in the expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 05:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978633#M979174</guid>
      <dc:creator />
      <dc:date>2015-08-25T05:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Elaborate filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978634#M979175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year={$(=max(year))}&lt;/P&gt;&lt;P&gt;or sum({$&amp;lt;id={'&amp;gt;10'}&amp;gt;}id)&lt;/P&gt;&lt;P&gt;or sum({$&amp;lt;id={$(vVar1)}&amp;gt;}id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 06:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978634#M979175</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-08-25T06:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Elaborate filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978635#M979176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can study some example with online calculator:&lt;/P&gt;&lt;P&gt;&lt;A href="http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx?sa=" title="http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx?sa="&gt;Set Analysis Wizard for QlikView | qlikblog.at&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;thx &lt;STRONG style="font-size: 14px; color: #666666; font-family: Calibri, Verdana; background: #ffffff;"&gt;Stefan WALTHER&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 07:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978635#M979176</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-08-25T07:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Elaborate filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978636#M979177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({$&amp;lt;id={$(vVar1)}&amp;gt;}id) work if vVar1 is a field from an other table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;My use-case: Table1 has a field called SalesLocation, Table2 has a field called LocationCode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I would like to filter and keep all rows from Table1 where the SalesLocation has a value among the LocationCode field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I tried:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=if(aggr(sum({$&amp;lt;SalesLocation={$(LocationCode)}&amp;gt;}1),InvoiceNumber)&amp;gt;0,'In','Out')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;but it doesn't filter properly (I got 'Out' on all rows)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 01:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978636#M979177</guid>
      <dc:creator />
      <dc:date>2015-08-26T01:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Elaborate filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978637#M979178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;dimension:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;InvoiceNumber&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;expression:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;=if(count({$&amp;lt;SalesLocation=p(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{$} LocationCode&lt;/SPAN&gt;)&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SalesLocation&lt;/SPAN&gt;)&amp;gt;0,'In','Out')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 10:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Elaborate-filtering/m-p/978637#M979178</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-08-26T10:02:57Z</dc:date>
    </item>
  </channel>
</rss>

