Forum Discussion

poweruser55's avatar
poweruser55
Icon for Helper IV rankHelper IV
4 years ago
Solved

Data label showing as decimal

I have a pie chart that has a data label year and the format is set to whole number in the data model and is set to 0 decimal in the app but it is still showing up as a decimal. Why is this happening? 

  • Hi poweruser55 

     

    If you have solved this problem, you can mark an appropriate reply as solution, or post your own solution and mark it.

     

    It not solved, assume you put Year column in the legend of the pie chart, you can select Year column in Fields pane, then change both Data type and Format to Whole number and change decimal number to 0 under Column tools tab.

     

    If you want to change the format of labels, select this chart and go to Format pane, expand Detail labels and change decimal places there. 

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.

4 Replies

  • v-jingzhang's avatar
    v-jingzhang
    Icon for Community Support rankCommunity Support

    Hi poweruser55 

     

    If you have solved this problem, you can mark an appropriate reply as solution, or post your own solution and mark it.

     

    It not solved, assume you put Year column in the legend of the pie chart, you can select Year column in Fields pane, then change both Data type and Format to Whole number and change decimal number to 0 under Column tools tab.

     

    If you want to change the format of labels, select this chart and go to Format pane, expand Detail labels and change decimal places there. 

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.

  • poweruser55 on the formatting pane of pie chart visual, change the decimal to 0.

     

     

    Follow us on LinkedIn and  to our YouTube channel

     

    Learn about conditional formatting at Microsoft Reactor

    My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.