<?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 Pie chart with Relative? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227297#M79408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there&lt;/P&gt;&lt;P&gt;i cannot show you in your model how to to do it sine i cannot reload your model&lt;/P&gt;&lt;P&gt;add this to your load script:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt; your_field_name&lt;BR /&gt; Values&lt;BR /&gt; Percentage&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;make sure the field name does not exist in your model&lt;/P&gt;&lt;P&gt;after reload you will have a table with 1 field and 2 values but it will not be connected to any other table.&lt;/P&gt;&lt;P&gt;then put a listbox with that field into the layout.&lt;/P&gt;&lt;P&gt;make sure you check the "always only one selected" checkbox.&lt;/P&gt;&lt;P&gt;then using the function getFieldselections(your_field_name)&lt;/P&gt;&lt;P&gt;you can switch between the "value" and "percentage" in your expressions.&lt;/P&gt;&lt;P&gt;(with an if statement switch between your old expression and my new expression for each of the expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i attached your model with how i did the percentage thing but you will have to do the rest yourself.&lt;/P&gt;&lt;P&gt;hope that helps.&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Dec 2010 16:41:00 GMT</pubDate>
    <dc:creator>wizardo</dc:creator>
    <dc:date>2010-12-20T16:41:00Z</dc:date>
    <item>
      <title>Pie chart with Relative?</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227291#M79402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a Pie chart with only expressions. I see the values there. Now I want to have the Relative percentages among themselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3099_sourceID:3099" /&gt;&lt;/P&gt;&lt;P&gt;Now I want it like this i.e Percentage among themselves to the total sum of these expressions.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3100_sourceID:3100" /&gt;&lt;/P&gt;&lt;P&gt;How can I achieve that? I tried to activate Relative box in the expression tab for all expressions but it gives a common 16,67 for each which is not correct.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 18:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227291#M79402</guid>
      <dc:creator />
      <dc:date>2010-12-17T18:17:13Z</dc:date>
    </item>
    <item>
      <title>Pie chart with Relative?</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227292#M79403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;See exemple. I hope to help you.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 20:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227292#M79403</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2010-12-17T20:40:15Z</dc:date>
    </item>
    <item>
      <title>Pie chart with Relative?</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227293#M79404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm&lt;/P&gt;&lt;P&gt;"....I have a Pie chart with &lt;B&gt;only expressions&lt;/B&gt;....."&lt;/P&gt;&lt;P&gt;i think here lies the problem.&lt;/P&gt;&lt;P&gt;since you are using separate expressions for each value in your chart, qlikview has no way to calculate the total. you must do it for him.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;one idea i have is this.&lt;/P&gt;&lt;P&gt;create a boolean variable&lt;/P&gt;&lt;P&gt;using an IF() statement that checks the value of the variable like that:&lt;/P&gt;&lt;P&gt;if($(YourVar) , normal expression, percentagefOfTotal expression).&lt;/P&gt;&lt;P&gt;put that in each of your expressions.&lt;/P&gt;&lt;P&gt;now use a macro to let the user change the value of the variable from false to true and vice verse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of a variable you could creat small "Island" table in the script with 2 values&lt;/P&gt;&lt;P&gt;then put it as a listbox for the user. dont forget to check the "only one selected" checkmark in the LB properties&lt;/P&gt;&lt;P&gt;and now instead of using the variable you use the getcurrentselections() function. and the user can select what to watch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another way could also be to make to charts one on top of the other , one with the values and one with the Percentage&lt;/P&gt;&lt;P&gt;and use a button to switch among them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or maybe you can concat the Percentage into the end of the expressions lables&lt;/P&gt;&lt;P&gt;that way they will show on the legend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope i was of help:)&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Dec 2010 01:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227293#M79404</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-12-18T01:33:42Z</dc:date>
    </item>
    <item>
      <title>Pie chart with Relative?</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227294#M79405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mansyno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer and a detailed Explanation.You speak of switching from Values and Percentages but I am seeing to get the Percentages first. After that the next step may be to switch according to Button or an Island table. If I am not getting your point, can you please see the attachment and suggest the changes. I dont like Macro solution but the other solution with Island and LB I find good.&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.49.52/38347.Forumproblem143Solved.qvw]&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 14:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227294#M79405</guid>
      <dc:creator />
      <dc:date>2010-12-20T14:32:43Z</dc:date>
    </item>
    <item>
      <title>Pie chart with Relative?</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227295#M79406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about having the percentage displayed when the user rollsover a slice with the cursor?&lt;/P&gt;&lt;P&gt;Just create the expression and check Enable/Relative/Invisible (all 3 of them) and then check 'text as pop-up'.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 15:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227295#M79406</guid>
      <dc:creator />
      <dc:date>2010-12-20T15:40:06Z</dc:date>
    </item>
    <item>
      <title>Pie chart with Relative?</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227296#M79407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gordan&lt;/P&gt;&lt;P&gt;I did not get you what you want to say. To Make it more clear, the expressions(6) as below are calculated differently and the percentage is obtained as in the fig Below by dividing with the Total value of Expressions.&lt;/P&gt;&lt;P&gt;For Ex: Idle = 7500/24900 = 30,12%&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.49.52/pic4.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Components.UserFiles/00.00.00.49.52/pic4.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I dont know how to get the Percentages as in the Above table. Hope I am clear now.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 16:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227296#M79407</guid>
      <dc:creator />
      <dc:date>2010-12-20T16:01:07Z</dc:date>
    </item>
    <item>
      <title>Pie chart with Relative?</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227297#M79408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there&lt;/P&gt;&lt;P&gt;i cannot show you in your model how to to do it sine i cannot reload your model&lt;/P&gt;&lt;P&gt;add this to your load script:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt; your_field_name&lt;BR /&gt; Values&lt;BR /&gt; Percentage&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;make sure the field name does not exist in your model&lt;/P&gt;&lt;P&gt;after reload you will have a table with 1 field and 2 values but it will not be connected to any other table.&lt;/P&gt;&lt;P&gt;then put a listbox with that field into the layout.&lt;/P&gt;&lt;P&gt;make sure you check the "always only one selected" checkbox.&lt;/P&gt;&lt;P&gt;then using the function getFieldselections(your_field_name)&lt;/P&gt;&lt;P&gt;you can switch between the "value" and "percentage" in your expressions.&lt;/P&gt;&lt;P&gt;(with an if statement switch between your old expression and my new expression for each of the expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i attached your model with how i did the percentage thing but you will have to do the rest yourself.&lt;/P&gt;&lt;P&gt;hope that helps.&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 16:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227297#M79408</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-12-20T16:41:00Z</dc:date>
    </item>
    <item>
      <title>Pie chart with Relative?</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227298#M79409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Mansyno,&lt;/P&gt;&lt;P&gt;Thanks for the Answer but I wonder what performance Problems this solution will give at the end as it includes SetAnalysis and If statements etc if thousands of Data are present. Now it is anyway for 2 Machines. I think I need to make a lot of calculations in the script.&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 17:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-Relative/m-p/227298#M79409</guid>
      <dc:creator />
      <dc:date>2010-12-20T17:02:49Z</dc:date>
    </item>
  </channel>
</rss>

