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?
I understood your problem. You have used below setting to simply convert your values to show as percentage.
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 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.
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.
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.
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?
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.