<?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: Count using Set analysis in chart expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548190#M1143399</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 tried this too but i can get&amp;nbsp; the answer only -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Sep 2013 06:01:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-21T06:01:58Z</dc:date>
    <item>
      <title>Count using Set analysis in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548185#M1143394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the count of distinct encounterid where the paid amount of that encounterid is less then or equal to zero.&lt;/P&gt;&lt;P&gt;I tried the following expressions i cant get the result&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;EncounterID ={"=$(=Sum(PaidAmount)&amp;lt;=0)"}&amp;gt;}DISTINCT EncounterID)--Zero value is return &lt;/P&gt;&lt;P&gt;=Count({&amp;lt;EncounterID={"=(Sum(PaidAmount))&amp;lt;=0"}&amp;gt;} DISTINCT EncounterID)--Some wrong value is returned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use the dimension as monthyear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me to come out of this problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Amuthabharathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 12:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548185#M1143394</guid>
      <dc:creator />
      <dc:date>2013-09-20T12:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count using Set analysis in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548186#M1143395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you want your set expression to consider your chart dimension, right? This will not work, please check&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1335"&gt;Evaluating "sets" in the context of a dimension&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 12:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548186#M1143395</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-20T12:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count using Set analysis in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548187#M1143396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with Aggr function as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Aggr(Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PaidAmount&lt;/SPAN&gt;),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EncounterID&lt;/SPAN&gt;) &amp;lt;= 0, count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DISTINCT EncounterID&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Som&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 12:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548187#M1143396</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2013-09-20T12:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count using Set analysis in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548188#M1143397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PaidAmount&lt;/SPAN&gt;={"=$(=Sum(PaidAmount)&amp;lt;=0)"}&amp;gt;}DISTINCT EncounterID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 20:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548188#M1143397</guid>
      <dc:creator />
      <dc:date>2013-09-20T20:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count using Set analysis in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548189#M1143398</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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({&amp;lt;EncounterID={"=Sum(PaidAmount)&amp;lt;=0"}&amp;gt;} DISTINCT EncounterID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 20:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548189#M1143398</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-09-20T20:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count using Set analysis in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548190#M1143399</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 tried this too but i can get&amp;nbsp; the answer only -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Sep 2013 06:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548190#M1143399</guid>
      <dc:creator />
      <dc:date>2013-09-21T06:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count using Set analysis in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548191#M1143400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this post has been open for a while - but I had the same issue and finally got it to work with the below expression. Perhaps it can help the next user&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=COUNT(DISTINCT if(aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PaidAmount&lt;/SPAN&gt;),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EncounterID&lt;/SPAN&gt;) &amp;lt;= 0, &lt;SPAN&gt;EncounterID&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 07:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/548191#M1143400</guid>
      <dc:creator />
      <dc:date>2014-09-04T07:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count using Set analysis in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/1550440#M1143401</link>
      <description>&lt;P&gt;This construct also worked for me.&lt;/P&gt;&lt;P&gt;I had to compare a date field to my master calendar like so:&lt;/P&gt;&lt;P&gt;=COUNT(DISTINCT if(Einddatum &amp;gt;= MonthEnd(Caldatum), Number))&lt;/P&gt;&lt;P&gt;But is is super slow, so I need something else. Any idea's?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 11:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-using-Set-analysis-in-chart-expression/m-p/1550440#M1143401</guid>
      <dc:creator>DutchHans</dc:creator>
      <dc:date>2019-02-28T11:54:30Z</dc:date>
    </item>
  </channel>
</rss>

