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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Berean_50
Helper I
Helper I

How to remove decimal places from total when value is 100%?

I have table where values are shown with two decimal places, i.e. 6.15%, 3.08% for each row. However when the total equals 100% it is shown as 100.00%?

How do I keep the decimal point values for the rows but remove decimal point values for the total when I have 100%? So the total should show 100% instead of 100.00%

 

Berean_50_0-1634703913701.png

 

1 ACCEPTED SOLUTION

Hi @Berean_50 

 

Test this:

measure = if([values]=1,format([values],"###%"),[values])

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

 

Appreciate your Kudos!!

 

View solution in original post

3 REPLIES 3
Berean_50
Helper I
Helper I

Hi @VahidDM 

Unfortunately that didn't work.

Berean_50_0-1634770234983.png

 

Hi @Berean_50 

 

Test this:

measure = if([values]=1,format([values],"###%"),[values])

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

 

Appreciate your Kudos!!

 

VahidDM
Super User
Super User

Hi @Berean_50 

 

You can use If Statment:

 

measure = if([values]=100%,format([values],"###%"),[values])

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!



Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.