<?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: Chart ignoring distinct expression when second element is added to stack bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956450#M328646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding count(distinct COMP) as second chart expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 08:08:15 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-09-29T08:08:15Z</dc:date>
    <item>
      <title>Chart ignoring distinct expression when second element is added to stack bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956449#M328645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a simple bar chart which uses two values SID and STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATUS is the dimension and the expression is Count(distinct SID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However i want to add a third value so i can have stacked bar charts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 08:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956449#M328645</guid>
      <dc:creator>matthewp</dc:creator>
      <dc:date>2015-09-29T08:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Chart ignoring distinct expression when second element is added to stack bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956450#M328646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding count(distinct COMP) as second chart expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 08:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956450#M328646</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-29T08:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Chart ignoring distinct expression when second element is added to stack bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956451#M328647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you upload a small sample QVW and your expected result? It's unclear to me how your setting / data model looks like and what you are trying to achieve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 08:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956451#M328647</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-29T08:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Chart ignoring distinct expression when second element is added to stack bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956452#M328648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u share&amp;nbsp; sample application ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 08:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956452#M328648</guid>
      <dc:creator>nagarjuna_kotha</dc:creator>
      <dc:date>2015-09-29T08:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Chart ignoring distinct expression when second element is added to stack bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956453#M328649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to clean up the comments to make it easier for future use but it deleted your answer which worked perfect!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit the above and i will mark it as correct...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;count(DISTINCT SUPPLIER_ID)*&lt;/P&gt;&lt;P style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;count(total &amp;lt;STATUS&amp;gt; DISTINCT SUPPLIER_ID)/&lt;/P&gt;&lt;P style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;sum(total &amp;lt;STATUS&amp;gt; aggr(count(DISTINCT SUPPLIER_ID),STATUS,COMPANY))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 09:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956453#M328649</guid>
      <dc:creator>matthewp</dc:creator>
      <dc:date>2015-09-29T09:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Chart ignoring distinct expression when second element is added to stack bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956454#M328650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please don't clean up discussions like that. The responses may not all have been useful to you, but you can't be sure other people did not find them useful in some way. You also remove all the context and relevant information so nobody can now figure out what the heck this discussion was about in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the qvw with a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 09:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956454#M328650</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-29T09:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Chart ignoring distinct expression when second element is added to stack bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956455#M328651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this (not really THIS but how it was before deletion) discussion to be one the better discussions. But alas! what you have done. It's hard now to make out the actual requirement you have that was derived after a long chain of discussions. I will try to recollect the problem in my words for future references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; There is a combo chart : Dim1: STATUS&amp;nbsp;&amp;nbsp; Expression: Count(Distinct SUPPLIER_ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This gives distinct counts STATUS wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now second dimension : Company is added to get stacked bars which would break up the distinct counts (that was coming STATUS wise) into Company and &lt;STRONG&gt;NOT distinct Company wise&lt;/STRONG&gt;. I.e. - the total distinct count should match the number that comes STATUS wise (with no Company dimension). If the expression - &lt;EM&gt;Count(Distinct SUPPLIER_ID) &lt;/EM&gt;is used, count() decides dintinction on Company as well, and that is not desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will help me understand the case when I revisit this thread which I bookmarked. Please don't clean-up this even if you find this not really helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956455#M328651</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-29T10:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Chart ignoring distinct expression when second element is added to stack bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956456#M328652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maybe try this in your expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STATUS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SUPPLIER_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STATUS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COMPANY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-ignoring-distinct-expression-when-second-element-is-added/m-p/956456#M328652</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2015-09-29T10:45:15Z</dc:date>
    </item>
  </channel>
</rss>

