<?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: Different from 0 in set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263703#M25822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right! Thanks for your help guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only little correction needed is to replace the " by ', and it works fine. Here is the working solution:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Security ID] = {'=Only({&amp;lt;$(=vSelectedDate)&amp;gt;} [Position Quantity]) &amp;lt;&amp;gt; 0 or Only({&amp;lt;$(=vSelectedDate)&amp;gt;} [Position Total Value]) &amp;lt;&amp;gt; 0'}&amp;gt;} DISTINCT [Security ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering though, is it faster to use this with two only or use something like this:&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;Count({&amp;lt;$(=vSelectedDate), [Position Total Value] -= {'0'}&amp;gt;+&amp;lt;$(=vSelectedDate), [Position Quantity] -= {'0'}&amp;gt;}distinct [Security ID])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2016 13:11:57 GMT</pubDate>
    <dc:creator>maxim1500</dc:creator>
    <dc:date>2016-12-15T13:11:57Z</dc:date>
    <item>
      <title>Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263686#M25805</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;I am trying to count the number of ids from a fact table where the quantity &lt;SPAN style="font-size: 13.3333px;"&gt;or total value&lt;/SPAN&gt; is different from 0 . Both fields are in the fact table. The following query works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;$(=vSelectedDate), [Position Total Value] = {'&amp;lt;0'}+{'&amp;gt;0'}&amp;gt;+&amp;lt;$(=vSelectedDate), [Position Quantity] = {'&amp;lt;0'}+{'&amp;gt;0'}&amp;gt;}distinct [Security ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if there were better ways to do this. For example, I tried to merge &lt;SPAN style="font-size: 13.3333px;"&gt;{'&amp;lt;0'}+{'&amp;gt;0'} into a single condition, such as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;$(=vSelectedDate), [Position Total Value] -= {'0'}&amp;gt;+&amp;lt;$(=vSelectedDate), [Position Quantity] -= {'0'}&amp;gt;}distinct [Security ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the result is wrong. As a matter of fact, the following query returns 0, and there are &amp;gt;100.&lt;/P&gt;&lt;P&gt;Count({&amp;lt;$(=vSelectedDate), [Position Quantity] = {'0'}&amp;gt;}distinct [Security ID]).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to do better? We have some performance issues, and we hope to improve that by simplifying set analysis as much as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 16:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263686#M25805</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-12-14T16:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263687#M25806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try intersection of negatives instead of union:&lt;/P&gt;&lt;P&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;STRONG&gt;Count({&amp;lt;$(=vSelectedDate), [Position Total Value] -= {'0'}, [Position Quantity] -= {'0'}&amp;gt;}distinct [Security ID])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263687#M25806</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-14T17:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263688#M25807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Position Quantity] = {'0'} does not work. Data is numeric and in the fact table. This is not a dimension. I tried removing the comas, adding =0 with or without comas, doesn't work. I checked manually in the dataset, and there are values at 0.00000000 as a quantity.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263688#M25807</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-12-14T17:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263689#M25808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then try greater than 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count({&amp;lt;$(=vSelectedDate), [Position Total Value] = {'&amp;gt;0'}, [Position Quantity] = {'&amp;gt;0'}&amp;gt;}distinct [Security ID])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263689#M25808</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-14T17:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263690#M25809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quantity could be negative. That's why I used &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{'&amp;lt;0'}+{'&amp;gt;0'}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263690#M25809</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-12-14T17:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263691#M25810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to include of exclude 0?&lt;/P&gt;&lt;P&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;[Position Quantity] -= {'0'} or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Position Quantity] = {'0'}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263691#M25810</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-14T17:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263692#M25811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to exclude it. But both of them do not work. If I exclude, it returns the full dataset. If I include, it returns 0. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263692#M25811</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-12-14T17:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263693#M25812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this?&lt;/P&gt;&lt;P&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;STRONG&gt;[Position Quantity] = {"=Num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Position Quantity]) &amp;lt;&amp;gt;&lt;/SPAN&gt; 0"}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263693#M25812</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-14T17:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263694#M25813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah that works. I guess there is something wrong with format in my table. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea of [Position Total Value] -= {'0'}, [Position Quantity] -= {'0'} won't work though. I need to exclude entries that have both total value and quantity = 0 at the same time. If you have one or the other, it needs to stay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263694#M25813</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-12-14T17:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263695#M25814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it, then back may be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;$(=vSelectedDate), &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; [Security ID] = {"=&lt;/STRONG&gt;[Position Total Value] &amp;lt;&amp;gt; 0 and Num([Position Quantity]) &amp;lt;&amp;gt; 0"}&amp;gt;} DISTINCT [Security ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick Security ID where both Value and Quantity are not equal to 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263695#M25814</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-14T17:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263696#M25815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know why, but numbers are off... Looks logical though&lt;SPAN style="font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263696#M25815</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-12-14T17:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263697#M25816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you have more than one value and/or quantity for each security id?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;$(=vSelectedDate), &lt;STRONG style="font-style: inherit;"&gt;[Security ID] = {"=Sum(&lt;/STRONG&gt;[Position Total Value]) &amp;lt;&amp;gt; 0 and Sum([Position Quantity]) &amp;lt;&amp;gt; 0"}&amp;gt;} DISTINCT [Security ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263697#M25816</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-14T17:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263698#M25817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sadly, it doesn't solve the issue... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, it should be&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;$(=vSelectedDate), &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;[Security ID] = {"=Sum(&lt;/STRONG&gt;[Position Total Value]) &amp;lt;&amp;gt; 0 &lt;SPAN style="text-decoration: underline;"&gt;OR&lt;/SPAN&gt;&amp;nbsp; Sum([Position Quantity]) &amp;lt;&amp;gt; 0"}&amp;gt;} DISTINCT [Security ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;since I want securities that have one of the conditions true. But still wrong...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 18:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263698#M25817</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-12-14T18:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263699#M25818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;$(=vSelectedDate), [Security ID] = {"=Num([Position Quantity]) &amp;lt;&amp;gt; 0"}&amp;gt;} DISTINCT [Security ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doesn't give the right number, if I consider only the quantity part. Sum and Num gives the same result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 18:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263699#M25818</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-12-14T18:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263700#M25819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its difficult to see what might be causing this, would you be able to share your application to take a quick look at it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 23:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263700#M25819</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-14T23:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263701#M25820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Sunny, but I cannot publish the app for security reasons, even without data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 12:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263701#M25820</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-12-15T12:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263702#M25821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you need to use your date filter also in the advanced search:&lt;/P&gt;&lt;P&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;Count({&amp;lt;$(=vSelectedDate), [Security ID] = {"=Only(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;$(=vSelectedDate)&amp;gt;} &lt;/SPAN&gt;[Position Quantity]) &amp;lt;&amp;gt; 0"}&amp;gt;} DISTINCT [Security ID])&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;(maybe you don't need the first part then:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count({&amp;lt; [Security ID] = {"=&lt;STRONG&gt;Only(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;$(=vSelectedDate)&amp;gt;} &lt;/SPAN&gt;[Position Quantity])&lt;/STRONG&gt; &amp;lt;&amp;gt; 0"}&amp;gt;} DISTINCT [Security ID])&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;Not sure if your dollar sign expansion is correct, that's hard to tell with the few information provided.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 13:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263702#M25821</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-15T13:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263703#M25822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right! Thanks for your help guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only little correction needed is to replace the " by ', and it works fine. Here is the working solution:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Security ID] = {'=Only({&amp;lt;$(=vSelectedDate)&amp;gt;} [Position Quantity]) &amp;lt;&amp;gt; 0 or Only({&amp;lt;$(=vSelectedDate)&amp;gt;} [Position Total Value]) &amp;lt;&amp;gt; 0'}&amp;gt;} DISTINCT [Security ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering though, is it faster to use this with two only or use something like this:&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;Count({&amp;lt;$(=vSelectedDate), [Position Total Value] -= {'0'}&amp;gt;+&amp;lt;$(=vSelectedDate), [Position Quantity] -= {'0'}&amp;gt;}distinct [Security ID])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 13:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263703#M25822</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-12-15T13:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263704#M25823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow!! We were so close and yet so far away.....Thanks to Stefan for taking us all the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 13:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263704#M25823</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-15T13:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Different from 0 in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263705#M25824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I am wondering though, is it faster to use this with two only or use something like this:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to test this with your real data, I think (but wasn't there a problem with filtering on zero?).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 13:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-from-0-in-set-analysis/m-p/1263705#M25824</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-15T13:16:15Z</dc:date>
    </item>
  </channel>
</rss>

