Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lastnn30
Post Patron
Post Patron

remove decimals

Hi

I have the table below, I select "show values as %" and now I see all these values in percentages. I wonder if I want to get ride of these decimals for example

 

70.32 %   to 70%  or 71%

 

Is that possible? Thank you very much.

 

SNAG-0892.jpg

2 ACCEPTED SOLUTIONS
VijayP
Super User
Super User

@lastnn30 

Select the foramt options and go to Specific Columns there you will find decimal options. and you can change the decimals to 0. as showin in picture

VijayP_0-1663487376255.png

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

v-yiruan-msft
Community Support
Community Support

Hi @lastnn30 ,

There is no direct option to set the decimal places, you can follow the steps below to get it. Please find the details in the attachment.

1. Create a measure as below to get the percentage

% Total = 
VAR _pertotal =
    SUM ( 'SalesTable'[Total] )
VAR _alltotals =
    CALCULATE ( SUM ( 'SalesTable'[Total] ), ALLSELECTED ( 'SalesTable' ) )
RETURN
    DIVIDE ( _pertotal, _alltotals )

2. Set the data type format of measure as Percentage and decimal places as 0

yingyinr_0-1663663945302.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @lastnn30 ,

There is no direct option to set the decimal places, you can follow the steps below to get it. Please find the details in the attachment.

1. Create a measure as below to get the percentage

% Total = 
VAR _pertotal =
    SUM ( 'SalesTable'[Total] )
VAR _alltotals =
    CALCULATE ( SUM ( 'SalesTable'[Total] ), ALLSELECTED ( 'SalesTable' ) )
RETURN
    DIVIDE ( _pertotal, _alltotals )

2. Set the data type format of measure as Percentage and decimal places as 0

yingyinr_0-1663663945302.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
VijayP
Super User
Super User

@lastnn30 

Select the foramt options and go to Specific Columns there you will find decimal options. and you can change the decimals to 0. as showin in picture

VijayP_0-1663487376255.png

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.