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
bbsin
New Member

Change percentage color to red if it's not 100% in power bi - how to?

hi 

May I know how to set to change font color as long as the percentage is negative?  The formula input is not working.  

 

bbsin_0-1709888135936.png


bbsin_1-1709888151780.png
Thank you

 

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

v-zhengdxu-msft
Community Support
Community Support

Hi @bbsin 

 

First of all, Just as @lbendlin (Thanks for your contribution to the Forum) said, The 100%( = 1) but not 100(=10000%).

 

Then you can also realize the target with dax:

I create a set of sample data:

vzhengdxumsft_0-1710123151836.png

Then add a measure:

Color = IF(MAX('Table'[Column1])=1,"blue","red")

And right-click the field of the table visual:

Conditional formatting > Font color

vzhengdxumsft_1-1710123240129.png

Select Field value in Format style Multi-check box, then choose the color measure in the What field should we base this on?

 

vzhengdxumsft_2-1710123298550.png

The result is as follow:

vzhengdxumsft_3-1710123452549.png

 

Best Regards

Zhengdong Xu
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-zhengdxu-msft
Community Support
Community Support

Hi @bbsin 

 

First of all, Just as @lbendlin (Thanks for your contribution to the Forum) said, The 100%( = 1) but not 100(=10000%).

 

Then you can also realize the target with dax:

I create a set of sample data:

vzhengdxumsft_0-1710123151836.png

Then add a measure:

Color = IF(MAX('Table'[Column1])=1,"blue","red")

And right-click the field of the table visual:

Conditional formatting > Font color

vzhengdxumsft_1-1710123240129.png

Select Field value in Format style Multi-check box, then choose the color measure in the What field should we base this on?

 

vzhengdxumsft_2-1710123298550.png

The result is as follow:

vzhengdxumsft_3-1710123452549.png

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

lbendlin_0-1710038548106.png

 

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.