cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ranjani_m Frequent Visitor
Frequent Visitor

Pie Chart Data

Hi Team,

 

With the recent upgrade, I do see that the Data labels in the Pie chart could be customized to show Percentages alongwith the Category.

Currently, my Pie chart displays Labels in Category and Percentage format, like this - "ABCD 28.06%".

I'm looking to round the Percentage (near the Category) to the nearest whole number.

 

Any ideas/suggestions on how we can achieve this? Is there any work around?

 

 

Thanks!

Ranjani

6 REPLIES 6
Super User
Super User

Re: Pie Chart Data

cant you just remove the decimal points from your % ie. change it to 0

 Capture.PNG


Did I answer your question? Mark my post as a solution.
Proud a to be a Datanaut!
Ranjani_m Frequent Visitor
Frequent Visitor

Re: Pie Chart Data

It wouldn't allow me to do that, since am trying to customize the percentage in a Pie chart and not on a specific column.

The decimal formatting (that you have in the screenshot) works/shows up only when we click on a specific column/field from the table and not on the visual.

 

 

Thanks!

Ranjani

Super User
Super User

Re: Pie Chart Data

ok well as far as i know that is where the formatting of the measure is handled, if you dont want your measure to be formatted like that, maybe create a copy of the measure without the decimals and use that in the chart?  out of curiosity is it a % measure or are you converting it to that in the pie?


Did I answer your question? Mark my post as a solution.
Proud a to be a Datanaut!
prateekraina New Contributor
New Contributor

Re: Pie Chart Data

Hi @Ranjani_m,

 

I understood your problem. You have used below setting to simply convert your values to show as percentage.
Solution1.PNG

 

Well, you cannot round this percentage as of now. 

I would suggest you to create a measure and calculate percentage and then round it how @vanessafvg mentioned.
Then use that measure in Values section of the Pi Chart.

Thanks !!!

Ranjani_m Frequent Visitor
Frequent Visitor

Re: Pie Chart Data

Hi,

 

Thanks for your response. I tried various work arounds using Measuress- those codes work very well as a standalone (can use in a KPI card/Bar Graph) but once I use the Percentage measure on a Pie chart, it doesn’t work since Pie chart again does a percentage calculation automatically. Thereby, a percentage breakdown of an existing percentage happens, leading to wrong values.

 

 

Thanks!

 

Highlighted
prateekraina New Contributor
New Contributor

Re: Pie Chart Data

Hi @Ranjani_m,

 

I think after crearting %Measure, you are choosing Percent Of Total  to be shown in Pi Chart.
Just choose Data values as Data labels to be shown. It will show your calculated Measure as breakup of PiChart.

 

Thanks !!!