cancel
Showing results 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.

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%

1 ACCEPTED SOLUTION
Super User

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.

3 REPLIES 3
Helper I

Hi @VahidDM

Unfortunately that didn't work.

Super User

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.

Super User

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.

Announcements

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

#### Power BI Monthly Update - April 2024

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

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors