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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.