<?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 create a data filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031517#M922856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;customer = {'Coca-Cola'}, [order value] = {'&amp;gt;0'}&amp;gt;}[order value])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2016 15:43:59 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-27T15:43:59Z</dc:date>
    <item>
      <title>How to create a data filter</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031516#M922854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; have 4 dimensions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) date&lt;/P&gt;&lt;P&gt;2) customer&lt;/P&gt;&lt;P&gt;3) order number&lt;/P&gt;&lt;P&gt;4) order value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to sum up the positive order values of the customer Coca-Cola for example and i dont want to use a list box as an filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031516#M922854</guid>
      <dc:creator>bmensing</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a data filter</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031517#M922856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;customer = {'Coca-Cola'}, [order value] = {'&amp;gt;0'}&amp;gt;}[order value])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 15:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031517#M922856</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-27T15:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a data filter</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031518#M922859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a new field in the script by loading the positive values like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(left([order value], 1) = '-', null(), [order value]) as [order value new]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use the [order value new] for the calculation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 15:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031518#M922859</guid>
      <dc:creator />
      <dc:date>2016-04-27T15:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a data filter</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031519#M922861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a total aside, but it bothers me that '&amp;gt;0' works as a search expression. Is there anywhere else in QlikView that a single quote does NOT mean a text literal? Maybe there is, but I'm not thinking of one right now. So if I didn't know better, I'd expect this to be looking for a literal value of '&amp;gt;0' rather than looking for numbers greater than zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it's probably user friendly to be flexible. As best I can tell, QlikView is doing something like if there IS a literal matching that value, it assumes you meant that literal and returns only that literal. If there isn't, then it interprets it as a mathematical comparison. And even if I have both numeric values and '&amp;gt;0' in my list of values, and I want to search for values greater than zero, I can always write it in some other way, such as '&amp;gt;+0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, a bit off your topic, Bernd. Sunny's answer looks right to me, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 16:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031519#M922861</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-04-27T16:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a data filter</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031520#M922862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't match an if and don't specify an else, it returns null, so this would be a shorter equivalent:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(left([order value], 1) &amp;lt;&amp;gt; '-', [order value]) as [order value new]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And since order value is almost certainly numeric since we intend to sum it, and since we want Coca-Cola, something more like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if([customer]='Coca-Cola' and [order value]&amp;gt;0,[order value]) as [positive Coca-Cola order value]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually prefer script solutions to set analysis solutions where both seem viable, so I sometimes do things like this. If this case is quite special, or if it's used in multiple places, then I'd probably put it in script. I prefer my complexity be in script rather than my charts. It makes for simpler expressions and I suspect executes marginally faster. But if there are a lot of positive Coca-Cola order values, this could eat up some memory that the set analysis solution wouldn't. And if you have to add this field with, say, a join of the table to itself that you wouldn't otherwise have, and then you didn't have a unique ID to join on, so you added one, now your script is going somewhat slower and you're using even more memory. So there are trade offs to consider. Though I suppose in most applications, there's not so much data for these trade offs to be of much concern, and it comes down to whatever's easiest and clearest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 16:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031520#M922862</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-04-27T16:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a data filter</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031521#M922863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are spot on. The fact that '&amp;gt;0' works as a search, and not as a literal match, is a bug. It will be fixed one day, hopefully... Searches should have double quotes (or square brackets, or grave accents).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2015/06/08/escape-sequences#comment-33547" title="https://community.qlik.com/blogs/qlikviewdesignblog/2015/06/08/escape-sequences#comment-33547"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2015/06/08/escape-sequences#comment-33547&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 07:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031521#M922863</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-04-28T07:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a data filter</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031522#M922864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;May be like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14537810831149100" jivemacro_uid="_14537810831149100"&gt;
&lt;P&gt;Order_Data:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;If([order value]&amp;lt;=0,'Negative','Postive') as OrderFilter,&lt;/P&gt;
&lt;P&gt;[order value] as od&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date, customer, order number, order value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22/04/2016, Coca-Cola, 1, -30&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23/04/2016, Coca-Cola, 2, -20&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24/04/2016, Coca-Cola, 3, 10&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25/04/2016, Coca-Cola, 4, 20&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26/04/2016, Coca-Cola, 5, 200&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 27/04/2016, Coca-Cola, 6, 444&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 28/04/2016, Coca-Cola, 7, -900&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By creating a orderfilter you can select Positive or negative order value at front end,like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or in set analysis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;OrderFilter={'Postive'}&amp;gt;}[order value])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Creating a Data Filter-214743.PNG" class="jive-image image-1" src="/legacyfs/online/122948_Creating a Data Filter-214743.PNG" style="height: 235px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 08:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031522#M922864</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-04-28T08:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a data filter</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031523#M922865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bernd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather using direct list box for the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;order value, &lt;/STRONG&gt;It is better you can make it as calculation dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In expression, you can change the order value as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;mahamed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 11:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031523#M922865</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2016-04-28T11:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a data filter</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031524#M922866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I'm glad I've always followed the convention that single quote means literal, double quote means search. So if you fix it, hopefully none of MY applications stop working. But this is where backwards compatibility rears its ugly head, and suddenly a whole lot of people's applications stop working when you fix the bug. It's one of those bugs that it might be better to never fix. Not my call to make, of course.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 15:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031524#M922866</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-04-28T15:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a data filter</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031525#M922867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I love putting flags in load scripts for this type of thing.&amp;nbsp; It keeps the refresh and click speed up.&lt;/P&gt;&lt;P&gt;in the load script put &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(customer = &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'Coca-Cola',1,0) as CokeFlag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in the expression&lt;/P&gt;&lt;P&gt;sum(if([order value]&amp;gt;0, [order value] * CokeFlag, 0))&lt;/P&gt;&lt;P&gt;this will only give you coke's order value when greater than 0&lt;/P&gt;&lt;P&gt;simple and quick loading, never underestimate the value of the dash board refresh speed when the user is clicking on selections. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flags are speedy in expressions inside the dashboards.&lt;/P&gt;&lt;P&gt;also - they work great on buttons&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 12:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-data-filter/m-p/1031525#M922867</guid>
      <dc:creator>suepenick</dc:creator>
      <dc:date>2016-05-23T12:40:44Z</dc:date>
    </item>
  </channel>
</rss>

