<?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: Re: count with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507641#M189790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qv might have problems evaluating the calculation in the advanced search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;=count (distinct(&amp;lt;sales = {"&amp;lt;$(=100/ V_increase_sales) &amp;gt;=0"}&amp;gt;}INVOICE_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached for a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 10:22:31 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-11-13T10:22:31Z</dc:date>
    <item>
      <title>count with expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507636#M189785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I uses this function to count all the invoices that have sales amount between 0 and 100 &lt;/P&gt;&lt;P&gt;count (distinct{&amp;lt;sales={"&amp;lt;100 &amp;gt;=0"}&amp;gt;}INVOICE_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I want to increase the sales value by a variable.&amp;nbsp; I've added a variable named V_increase_sales and changed the formula to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; count (distinct(&amp;lt;sales*V_increase_sales={"&amp;lt;100 &amp;gt;=0"}&amp;gt;}INVOICE_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help will be appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507636#M189785</guid>
      <dc:creator>egoziyan</dc:creator>
      <dc:date>2013-11-11T16:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: count with expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507637#M189786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count (distinct{&amp;lt;sales={"&amp;lt;100*V_increase_sales &amp;gt;=0"}&amp;gt;}INVOICE_NO)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507637#M189786</guid>
      <dc:creator>jonasheisterkam</dc:creator>
      <dc:date>2013-11-11T16:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: count with expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507638#M189787</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;=count (distinct(&amp;lt;sales = {"&amp;lt;100/$(V_increase_sales) &amp;gt;=0"}&amp;gt;}INVOICE_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can only use pure field names left of the equal sign in a field modifier (hence the name).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507638#M189787</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-11T16:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: count with expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507639#M189788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;STRONG&gt;only fields&lt;/STRONG&gt; on the left side of "=", that is it must be "sales=" in any case.&amp;nbsp; You have to change your right side to use variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507639#M189788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-11T16:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: count with expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507640#M189789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help, however after I am adding the variable it is not recognized as one between the quotations and therefore doesn't do the calculation &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 10:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507640#M189789</guid>
      <dc:creator>egoziyan</dc:creator>
      <dc:date>2013-11-13T10:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: count with expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507641#M189790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qv might have problems evaluating the calculation in the advanced search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;=count (distinct(&amp;lt;sales = {"&amp;lt;$(=100/ V_increase_sales) &amp;gt;=0"}&amp;gt;}INVOICE_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached for a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 10:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507641#M189790</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-13T10:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: count with expression</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507642#M189791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;working fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 10:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-expression/m-p/507642#M189791</guid>
      <dc:creator>egoziyan</dc:creator>
      <dc:date>2013-11-13T10:56:09Z</dc:date>
    </item>
  </channel>
</rss>

