<?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: Pie Chart Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243453#M1180103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right - it shows 100% for all three slices. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, then there are two ways to go: Either you make your pie chart expression more complex by normalizing it yourself, i.e. by dividing with the proper number. It could be e.g.&lt;BR /&gt;Sum(Price)/Count(TransactionID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you do something in the script to sput all three reasons into one field. How to do this depends very much on how your data is delivered. In the attachment you can find a mock-up for one case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2012 15:42:31 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-02-01T15:42:31Z</dc:date>
    <item>
      <title>Pie Chart Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243448#M1180098</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;&lt;/P&gt;&lt;P&gt;I am new to Qlikview and battling with the creation of a piechart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem description:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a number of transactions, lets say 100 of them. Each transaction has a reason (Price, Delivery, Relationship). The reasons are not mutually exclusive, therefore for the 100 transactions there could be say 125 reasons selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a piechart that shows the percentage of each reason. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So lets presume the 125 reasons are split into (80 price, 20 delivery, 25 relationship). In excel i would simply have graphed the 2 columns below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Price&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Delivery&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Relationship&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlikview I need to select a dimension and an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a number of transaction description fields, like name, department, transaction id etc, and I 3 fields which are called price, delivery, relationship. For each transaction these fields are either set to a 1 or 0 depending on whether or not they are selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I turn this into a piechart to acheive the above aim?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help much appreciated&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 12:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243448#M1180098</guid>
      <dc:creator />
      <dc:date>2012-02-01T12:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pie Chart Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243449#M1180099</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;In dimension take Header1 &amp;amp; in expression try this&lt;/P&gt;&lt;P&gt;=dual(&amp;nbsp; sum([Header 2]) &amp;amp; chr(10)&amp;nbsp; &amp;amp;&lt;/P&gt;&lt;P&gt;num( sum([Header 2])/sum(total [Header 2]), '##%')&lt;/P&gt;&lt;P&gt;, sum([Header 2]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the expression tab&amp;nbsp; 'relative' should be unchecked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I understood your problem correctly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gargi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 13:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243449#M1180099</guid>
      <dc:creator>gargi_bardhan</dc:creator>
      <dc:date>2012-02-01T13:09:22Z</dc:date>
    </item>
    <item>
      <title>Pie Chart Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243450#M1180100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;normally I would use the fields as you describe as &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt; name, department, transaction id as dimensions, but Gargi can be right and use the Header 1 as a dimension, but i&lt;/SPAN&gt;f I understand it correclty you should use a formula that sums the flags(1 and 0) from the fields &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;price, delivery, relationship.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Gert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 13:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243450#M1180100</guid>
      <dc:creator />
      <dc:date>2012-02-01T13:31:51Z</dc:date>
    </item>
    <item>
      <title>Pie Chart Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243451#M1180101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or simpler: Do not add any dimension at all, and then add three expressions: Sum(Price), Sum(Delivery), Sum(Relationship). Then display it as relative (Chart properties – Expressions – Relative) and finally set it to percentage (Chart properties – Number – Integer / Show in percent).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 14:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243451#M1180101</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-02-01T14:37:22Z</dc:date>
    </item>
    <item>
      <title>Pie Chart Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243452#M1180102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henric thanks for this. This almost works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set all 3 expressions to relative, i get them all showing 100%, and they all have an equal slice of the pie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I don't set them to relative then I get the correct size for the pie slices (exactly what I was after), but I get %'s that are not relative to each other, like 2500%. If I turn off the %, then I just get the numbers i.e. 25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 15:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243452#M1180102</guid>
      <dc:creator />
      <dc:date>2012-02-01T15:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pie Chart Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243453#M1180103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right - it shows 100% for all three slices. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, then there are two ways to go: Either you make your pie chart expression more complex by normalizing it yourself, i.e. by dividing with the proper number. It could be e.g.&lt;BR /&gt;Sum(Price)/Count(TransactionID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you do something in the script to sput all three reasons into one field. How to do this depends very much on how your data is delivered. In the attachment you can find a mock-up for one case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 15:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243453#M1180103</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-02-01T15:42:31Z</dc:date>
    </item>
    <item>
      <title>Pie Chart Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243454#M1180104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent the normalizing worked a treat, but i think your suggestion of moving the 3 fields into 1 has additional value, because at the moment if you click one of the slices on the pie chart it does not add to the selection filter which could be extremely useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a mil for your help Henric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 16:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-Chart-Help/m-p/243454#M1180104</guid>
      <dc:creator />
      <dc:date>2012-02-01T16:01:47Z</dc:date>
    </item>
  </channel>
</rss>

