cancel
Showing results for 
Search instead for 
Did you mean: 
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
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.