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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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