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

Top Solution Authors