Forum Discussion

Ranjani_m's avatar
Ranjani_m
Regular Visitor
9 years ago

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

  • prateekraina's avatar
    prateekraina
    Memorable Member

    Hi Ranjani_m,

     

    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 !!!

    • Ranjani_m's avatar
      Ranjani_m
      Regular Visitor

      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!

       

      • prateekraina's avatar
        prateekraina
        Memorable Member

        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 !!!

  • vanessafvg's avatar
    vanessafvg
    Community Champion

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

     

    • Ranjani_m's avatar
      Ranjani_m
      Regular Visitor

      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

      • vanessafvg's avatar
        vanessafvg
        Community Champion

        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?