<?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: compare a dollar amount &amp;lt;&amp;gt; 0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410666#M152839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;count({&amp;lt;Year= {"$(=Max(Year))"} ,[Total Line Amount] = {"&amp;gt;0&amp;lt;0"}, &lt;A href="Line Item Type"&gt;&lt;/A&gt; = {'I'}&amp;gt;} &lt;A href="https://community.qlik.com/HSDETITEMNUMBER"&gt;&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this one and it seemed to work.&lt;/P&gt;&lt;P&gt;Is it working because the value is comparing against zero?&lt;/P&gt;&lt;P&gt;Would it for example count a 1 for -5.00 and then  count a 1 for 10.00  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lynda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lynda Wales&lt;/P&gt;&lt;P&gt;800 845-3711  ext. 2366&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lyndawales@unitedsportingco.com&amp;lt;mailto:lyndawales@unitedsportingco.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 13:59:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-15T13:59:49Z</dc:date>
    <item>
      <title>compare a dollar amount &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410659#M152832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression box isn't something that I have mastered yet.&lt;/P&gt;&lt;P&gt;I need to count all the lines unless the Total Line Amount is zero, which means we didn't ship anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;Year= {"$(=Max(Year))"} , [Line Item Type] = {'I'}&amp;gt;} [HSDETITEMNUMBER])&amp;nbsp; THIS WORKS FINE but include the lines where we didn't ship anything.&lt;/P&gt;&lt;P&gt;I need to add &lt;STRONG&gt;Total Line Amount &amp;lt;&amp;gt; .00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;Year= {"$(=Max(Year))"} ,[Total Line Amount] =&amp;nbsp; (&amp;lt;.00/&amp;gt;.00) [Line Item Type] = {'I'}&amp;gt;} [HSDETITEMNUMBER])&amp;nbsp;&amp;nbsp;&amp;nbsp; This didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody give me some help? I know this is a elementary problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 19:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410659#M152832</guid>
      <dc:creator />
      <dc:date>2012-10-12T19:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: compare a dollar amount &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410660#M152833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;count({&amp;lt;Year= {"$(=Max(Year))"} ,[Total Line Amount] = {"&amp;gt;0&amp;lt;0"}, [Line Item Type] = {'I'}&amp;gt;} [HSDETITEMNUMBER])&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 19:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410660#M152833</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-12T19:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: compare a dollar amount &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410661#M152834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a little unclear, but probably this:&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;count({&amp;lt;Year= {"$(=Max(Year))"} , &lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;&lt;STRONG&gt;[Total Line Amount]-={0}, &lt;/STRONG&gt;&lt;/SPAN&gt;[Line Item Type] = {'I'}&amp;gt;} [HSDETITEMNUMBER]) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Edit: To clarify, swuehl's version says "search for and include line amounts that are either greater than zero or less than zero."&amp;nbsp; Mine says "exclude line amounts that are zero".&amp;nbsp; Both should return the same thing.&amp;nbsp; I prefer to avoid search expressions in favor of literals where possible, but I can think of no &lt;EM&gt;practical &lt;/EM&gt;reason for doing so.&amp;nbsp; It's more of an aesthetics thing, which is of course personal.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 19:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410661#M152834</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2012-10-12T19:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: compare a dollar amount &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410662#M152835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Total Line Amount] = ("&amp;lt;&amp;gt;.00") &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 19:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410662#M152835</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-10-12T19:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: compare a dollar amount &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410663#M152836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks  so much this one worked.&lt;/P&gt;&lt;P&gt;Lynda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lynda Wales&lt;/P&gt;&lt;P&gt;800 845-3711  ext. 2366&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lyndawales@unitedsportingco.com&amp;lt;mailto:lyndawales@unitedsportingco.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 19:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410663#M152836</guid>
      <dc:creator />
      <dc:date>2012-10-12T19:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: compare a dollar amount &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410664#M152837</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;Both methods would return the same thing only if there were no selections in [Total Line Amount].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "=" modifier sets the selections to a specific value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "-=" modifies current selections in that field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 18:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410664#M152837</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-10-14T18:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: compare a dollar amount &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410665#M152838</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;John Witherspoon wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Edit: To clarify, swuehl's version says "search for and include line amounts that are either greater than zero or less than zero."&amp;nbsp; &lt;/SPAN&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;IMHO, it's interesting to know that QV's interpretation of a search expression like "&amp;gt;&lt;EM&gt;FirstLimit&lt;/EM&gt;&amp;lt;&lt;EM&gt;SecondLimit&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;is depending on the comparison of &lt;EM&gt;FirstLimit &lt;/EM&gt;and &lt;EM&gt;SecondLimit &lt;/EM&gt;itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;EM&gt;FirstLimit &lt;/EM&gt;is smaller than &lt;EM&gt;SecondLimit, &lt;/EM&gt;the resulting data set from the search will be the &lt;SPAN style="text-decoration: underline;"&gt;intersection &lt;/SPAN&gt;of the two data sets resulting from the two comparisons with field values, where the resulting data set will be the &lt;SPAN style="text-decoration: underline;"&gt;union &lt;/SPAN&gt;of both, if &lt;EM&gt;FirstLimit &lt;/EM&gt;is larger than &lt;EM&gt;SecondLimit. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple example: A field with a list of values ranging from one to 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&amp;gt;5&amp;lt;8" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will return 6, 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While "&amp;gt;8&amp;lt;5" will return 1, 2, 3, 4, 9, 10 (where you would expect an empty set if the same logic as above would apply).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So QV is applying some of its artificial intelligence to determine the logical operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though the result might be what one implicitely would expect, I haven't found any documentation about this anywhere (like for most of the search capabilities, one of the worst documented parts in QV documention, IMO).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one needs to consider this if the search limits are not literals, but dynamically derived from other fields etc.&lt;/P&gt;&lt;P&gt;(For example when you expect always StartTime &amp;lt; EndTime, but when your data proves something else...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: I would appreciate if QV would accept a search string like &lt;SPAN style="font-family: 'courier new', courier;"&gt;"&amp;lt;&amp;gt;.00", &lt;/SPAN&gt;&lt;BR /&gt;but it just seems to interprete this as "&amp;lt;{MissingValueForLimit}&amp;gt;.00", i.e. "&amp;gt;.00"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 13:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410665#M152838</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-15T13:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: compare a dollar amount &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410666#M152839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;count({&amp;lt;Year= {"$(=Max(Year))"} ,[Total Line Amount] = {"&amp;gt;0&amp;lt;0"}, &lt;A href="Line Item Type"&gt;&lt;/A&gt; = {'I'}&amp;gt;} &lt;A href="https://community.qlik.com/HSDETITEMNUMBER"&gt;&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this one and it seemed to work.&lt;/P&gt;&lt;P&gt;Is it working because the value is comparing against zero?&lt;/P&gt;&lt;P&gt;Would it for example count a 1 for -5.00 and then  count a 1 for 10.00  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lynda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lynda Wales&lt;/P&gt;&lt;P&gt;800 845-3711  ext. 2366&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lyndawales@unitedsportingco.com&amp;lt;mailto:lyndawales@unitedsportingco.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 13:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410666#M152839</guid>
      <dc:creator />
      <dc:date>2012-10-15T13:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: compare a dollar amount &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410667#M152840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lynda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I got your question correctly, but I believe the logic in the set modifier is a union of both sets: one set of values for Total Line Amount values where values are &amp;gt;0 and one set for values &amp;lt;0. &lt;/P&gt;&lt;P&gt;Just like John said: &lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;"search for and include line amounts that are either greater than zero or less than zero."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think this is what you requested, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if my previous post was maybe more confusing then of any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 14:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410667#M152840</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-15T14:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: compare a dollar amount &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410668#M152841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;Yes… That is right.&lt;/P&gt;&lt;P&gt;I had checked it and thought that it work.&lt;/P&gt;&lt;P&gt;I so appreciate the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lynda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lynda Wales&lt;/P&gt;&lt;P&gt;800 845-3711  ext. 2366&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lyndawales@unitedsportingco.com&amp;lt;mailto:lyndawales@unitedsportingco.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 14:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410668#M152841</guid>
      <dc:creator />
      <dc:date>2012-10-15T14:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: compare a dollar amount &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410669#M152842</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;Rob Wunderlich wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both methods would return the same thing only if there were no selections in [Total Line Amount].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "=" modifier sets the selections to a specific value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "-=" modifies current selections in that field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob.&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're right of course.&amp;nbsp; They're not the same.&amp;nbsp; I've gotten rusty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tend to use -= and *= frequently when doing set analysis.&amp;nbsp; I believe that users expect the system to be responsive to their selections.&amp;nbsp; So if we want to exclude 0, I would use -={0} so that if the user selects one or more of the remaining values, the chart will be restricted to what they select.&amp;nbsp; Otherwise, we'll always show all values other than 0, which I think is typically not what users want or expect.&amp;nbsp; It may be appropriate in some cases, of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same applies to the use of *= when restricting to specific values.&amp;nbsp; If you just use =, exactly those values and all of those values will always show, even if the user selects just one of them for more careful analysis.&amp;nbsp; With the *=, their choices are restricted to the values listed, but they can still narrow the chart down by making selections.&amp;nbsp; It's sometimes appropriate to use = for a list, but I think I more frequently use *=.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 17:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-a-dollar-amount-lt-gt-0/m-p/410669#M152842</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2012-10-15T17:26:11Z</dc:date>
    </item>
  </channel>
</rss>

