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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
Paulyeo11
Impactful Individual
Impactful Individual

how to make text Font colour should be white when black ground colour red ?

Hi All

 
Below is my script for make font colour white when text black ground colour red.
 
Color Text Target =
VAR _variance_per_country =
[Target Vari %]
RETURN
SWITCH (
TRUE (),
_variance_per_country < 0 && _variance_per_country >= -100, "#edebeb", //#D64550 TEST #edebeb
_variance_per_country <= 10 && _variance_per_country >=0, "#0d0d0d",
"#00000"
)
Below is the result not correct , due to above script 

Paulyeo11_0-1606568444950.png

Can some one share with me where go wrong ?

 

Paul

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Paulyeo11 

I tested your measure  on my side  and it seems that no errors were found.

48.png

 

Please recheck whether you have used the corresponding conditional format.

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Paulyeo11 

Could you please tell me if your problem has been solved?

For now, there is no content of description in the thread. If you still need help, please share more details to us.

 

Best Regards,
Community Support Team _ Eason

 

v-easonf-msft
Community Support
Community Support

Hi, @Paulyeo11 

I tested your measure  on my side  and it seems that no errors were found.

48.png

 

Please recheck whether you have used the corresponding conditional format.

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.