<?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 distinct and sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427790#M159428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find attached the pie chart, I want to display the pourcentage on the chart and not on the legend, on the both if it's possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In use [TRANS] and [CUSTO] like dimension but this value appears in the same color, red. It's possible to have a coleur different, one for [TRANS] and other for [CUSTO].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the first sheet, I have do a mistake, I have the folling board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="623"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="90"&gt;HMCONT&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="146"&gt;CUSTO&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="125"&gt;TRANS&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="127"&gt;DATE MOV&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="108"&gt;DATE ENTREE &lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="27"&gt;PEV&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;U6451156&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;SV&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10/01/2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;U6451156&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;SV&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;U2520054&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;SV&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10/01/2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;U2520054&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;SV&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;U7000870&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;SV&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10/01/2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;U7000870&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;SV&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the function =count(distinct HMCONT) to do a sum of column [PEV] result is = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want PEV 2 = 2 and PEV 1 = 1 the result of the function above must be = 5. Have you an idea to have this result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2013 14:00:32 GMT</pubDate>
    <dc:creator>realpixel</dc:creator>
    <dc:date>2013-04-08T14:00:32Z</dc:date>
    <item>
      <title>count distinct and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427783#M159421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under a part of my board&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 320px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="80"&gt;HMCOUNT&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;CUSTO&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;TRANS&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;PEV&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;2000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;3000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;3000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;3000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;4000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;5000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO4&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;6000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS6&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;6000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS6&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;6000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS6&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;7000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO6&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS6&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;8000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO7&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS6&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;9000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;CUSTO8&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;TRANS6&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use [TRANS] like dimenssion and function count(distinct HMCOUNT) (I use count distinct because there are several time the same value is HMCOUNT) to do a sum of [PEV], it's works by [TRANS] but how to divide by the total of [PEV] for all [TRANS]?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do sum of [PEV] by [TRANS] divide by the sum all PEV multiply by 100&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 17:57:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427783#M159421</guid>
      <dc:creator>realpixel</dc:creator>
      <dc:date>2013-04-05T17:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427784#M159422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;STRONG&gt;100*sum(PEV)/sum(total PEV)&lt;/STRONG&gt;. See attached example. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 18:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427784#M159422</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-05T18:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427785#M159423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert for your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example I need to do a sum total of "count(distinct HMCOUNT)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have a function like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100*count(distinct HMCOUNT)/ "by sum total of count(distinct HMCOUNT)"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 21:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427785#M159423</guid>
      <dc:creator>realpixel</dc:creator>
      <dc:date>2013-04-05T21:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427786#M159424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have a look at the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2013 06:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427786#M159424</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-06T06:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427787#M159425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your assistance, it's works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - I have a sheet for a specific value and I created a new graphic in new sheet and all sheet are in the same document. &lt;/P&gt;&lt;P&gt;When I select a value from the filter on the first sheet, this selection appears also on the other sheet, how to do that the filter selection is independent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - In the new sheet, I created a graphic sheet with sector graphic, I need to display the pourcentage of each sector on the graphic, how to do? The pourcentage appears in the legend but not on the sectors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 - In my graphic sector I have same color for [TRANS] and [CUSTO], how to do to have a different color?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 - I need to display the result only for some value in the column [TRANS]. I use a filter selection to choice the value but I want to fix some value without to use a filter selection. Have you an idea how to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2013 09:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427787#M159425</guid>
      <dc:creator>realpixel</dc:creator>
      <dc:date>2013-04-06T09:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427788#M159426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ans 1: Yes you can do this with two ways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. You place an event on sheet activation to clear the selection when you go to sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Go to sheet properties -&amp;gt; Triggers -&amp;gt; On ActiveSheet Tigger -&amp;gt;&amp;nbsp; Add -&amp;gt; Selection -&amp;gt;Clear All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. You use the Alternate state. For more info look into Whats new in QlikView 11.qvw in the example folder of your computer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ans 2: I am not sure what you mean to say, please explain in detail with example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ans 3: You can click on '+' sign next to the expression -&amp;gt; Expand that you will find the Background color.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type expression like below in definition space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Field1 = 'ABC',Red(),Yellow())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ans 4: For selection few values by default you can use the Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assume you want sales only for country india. Then the expression will be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;Country = {"INDIA"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Apr 2013 06:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427788#M159426</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-07T06:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427789#M159427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ans 1: Yes you can do this with two ways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. You place an event on sheet activation to clear the selection when you go to sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Go to sheet properties -&amp;gt; Triggers -&amp;gt; On ActiveSheet Tigger -&amp;gt;&amp;nbsp; Add -&amp;gt; Selection -&amp;gt;Clear All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. You use the Alternate state. For more info look into Whats new in QlikView 11.qvw in the example folder of your computer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ans 2: I am not sure what you mean to say, please explain in detail with example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ans 3: You can click on '+' sign next to the expression -&amp;gt; Expand that you will find the Background color.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type expression like below in definition space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Field1 = 'ABC',Red(),Yellow())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ans 4: For selection few values by default you can use the Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assume you want sales only for country india. Then the expression will be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;Country = {"INDIA"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Apr 2013 06:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427789#M159427</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-07T06:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427790#M159428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find attached the pie chart, I want to display the pourcentage on the chart and not on the legend, on the both if it's possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In use [TRANS] and [CUSTO] like dimension but this value appears in the same color, red. It's possible to have a coleur different, one for [TRANS] and other for [CUSTO].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the first sheet, I have do a mistake, I have the folling board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="623"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="90"&gt;HMCONT&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="146"&gt;CUSTO&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="125"&gt;TRANS&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="127"&gt;DATE MOV&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="108"&gt;DATE ENTREE &lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="27"&gt;PEV&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;U6451156&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;SV&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10/01/2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;U6451156&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;SV&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;U2520054&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;SV&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10/01/2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;U2520054&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;SV&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;U7000870&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;SV&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10/01/2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;U7000870&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CUSTO1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;SV&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19/03/2013&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the function =count(distinct HMCONT) to do a sum of column [PEV] result is = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want PEV 2 = 2 and PEV 1 = 1 the result of the function above must be = 5. Have you an idea to have this result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 14:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427790#M159428</guid>
      <dc:creator>realpixel</dc:creator>
      <dc:date>2013-04-08T14:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct and sum</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427791#M159429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Kindly upload the sample Qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 05:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-and-sum/m-p/427791#M159429</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-09T05:35:35Z</dc:date>
    </item>
  </channel>
</rss>

