<?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: Creating Pie chart on expression value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-Pie-chart-on-expression-value/m-p/37594#M6367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi muhammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can use column "Type" as dimension and use Count(distinct VoucherID) as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can make it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Aiolos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2018 06:18:05 GMT</pubDate>
    <dc:creator>uacg0009</dc:creator>
    <dc:date>2018-04-16T06:18:05Z</dc:date>
    <item>
      <title>Creating Pie chart on expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Pie-chart-on-expression-value/m-p/37593#M6366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using a table like this&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;VoucherID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;VhrDate&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Customer&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;PaidAmt&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Type&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;v-123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01-01-2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;abc&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;V-655&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15-02-2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xyz&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4687&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;V-698&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;09-03-2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;eee&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;unpaid&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for PaidAmt is&lt;/P&gt;&lt;P&gt;=sum(receive_amt)&lt;/P&gt;&lt;P&gt;issue is the type column is also an expression field i.e =if(sum(receive_amt) = 0,'Unpaid','Paid');&lt;/P&gt;&lt;P&gt;now I want to show above table in pie chart to show the count of customer who paid/unpaid, something as in attached file &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 03:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Pie-chart-on-expression-value/m-p/37593#M6366</guid>
      <dc:creator>swiftfahad</dc:creator>
      <dc:date>2018-04-16T03:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Pie chart on expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Pie-chart-on-expression-value/m-p/37594#M6367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi muhammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can use column "Type" as dimension and use Count(distinct VoucherID) as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can make it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Aiolos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 06:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Pie-chart-on-expression-value/m-p/37594#M6367</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2018-04-16T06:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Pie chart on expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Pie-chart-on-expression-value/m-p/37595#M6368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlik will not accept having an expression like this that is a so-called nested aggregation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count( Sum(PaidAmt)=0 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but&lt;/STRONG&gt; you are allowed to nest aggregations if the inner aggregation has a TOTAL quaifier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count( Sum(&lt;STRONG&gt;TOTAL&lt;/STRONG&gt; PaidAmt)=0 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However you need Aggr() to create the two dimension values in a calcuated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the bar chart and press the "calculated dimension" on the Dimension tab to create the unpaid/paid values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;=Aggr( If(Sum(PaidAmt)=0,'unpaid','paid') , Customer )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if the paid status should be calculated &lt;SPAN style="text-decoration: underline;"&gt;not just per Customer&lt;/SPAN&gt; but per VoucherID, VhrDate and Customer then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;=Aggr( If(Sum(PaidAmt)=0,'unpaid','paid') , &lt;EM&gt;VoucherID, VhrDate, Customer&lt;/EM&gt; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then add the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; =&lt;STRONG&gt;Count(Sum(TOTAL PaidAmt) = 0) &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 06:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Pie-chart-on-expression-value/m-p/37595#M6368</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-04-16T06:33:23Z</dc:date>
    </item>
  </channel>
</rss>

