<?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 expression - need help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964353#M946067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all your replies.&lt;/P&gt;&lt;P&gt;The formula that worked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( Aggr (if($(vSalesSum) &amp;gt; 0, Count(DISTINCT [Customer])), [Material], [Customer]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2015 09:01:44 GMT</pubDate>
    <dc:creator>linoyel</dc:creator>
    <dc:date>2015-12-22T09:01:44Z</dc:date>
    <item>
      <title>Chart expression - need help</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964347#M946061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, I need help with writing a chart expression.&lt;/P&gt;&lt;P&gt;If I have the following data where "Sum of Sales" is an expression: sum([MONTHLY BRUTO SALES])+sum([BRUTO SALES])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="447"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="98"&gt;Material&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;Customer&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="107"&gt;Sum of Sales&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="144"&gt;Count distinct customer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;184.67&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;168.87&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;15.00&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0.54&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0.27&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0.00&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to present Number of distinct customers who BOUGHT the selected material - which means that Sum of Sales is supposed to be &amp;gt; 0. I need to get this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="242"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="98"&gt;Material&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="144"&gt;Count distinct customer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;abc&lt;/TD&gt;&lt;TD align="right"&gt;&lt;P&gt;4&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 15:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964347#M946061</guid>
      <dc:creator>linoyel</dc:creator>
      <dc:date>2015-12-21T15:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression - need help</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964348#M946062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( Aggr( If( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum([MONTHLY BRUTO SALES])+sum([BRUTO SALES]) &amp;gt;0,1), Material, Customer))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 15:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964348#M946062</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-21T15:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression - need help</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964349#M946063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi you can use&lt;/P&gt;&lt;P&gt;sum(aggr(if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum([MONTHLY BRUTO SALES])+sum([BRUTO SALES])&amp;gt;0,1,0),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Customer,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Material))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 15:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964349#M946063</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-12-21T15:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression - need help</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964350#M946064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if (sum([MONTHLY BRUTO SALES])+sum([BRUTO SALES])&amp;gt;0,&amp;nbsp; Count(Material)) should do it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 15:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964350#M946064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-21T15:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression - need help</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964351#M946065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$ &amp;lt;[Sum of Sales]={'&amp;gt;0'}&amp;gt;} TOTAL DISTINCT Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 15:29:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964351#M946065</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-12-21T15:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression - need help</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964352#M946066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Se for mostrar somente o número de clientes pode fazer o seguinte:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count (distinct cliente)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 15:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964352#M946066</guid>
      <dc:creator>cleitoncabral2</dc:creator>
      <dc:date>2015-12-21T15:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression - need help</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964353#M946067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all your replies.&lt;/P&gt;&lt;P&gt;The formula that worked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( Aggr (if($(vSalesSum) &amp;gt; 0, Count(DISTINCT [Customer])), [Material], [Customer]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 09:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-expression-need-help/m-p/964353#M946067</guid>
      <dc:creator>linoyel</dc:creator>
      <dc:date>2015-12-22T09:01:44Z</dc:date>
    </item>
  </channel>
</rss>

