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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Need help conditional formatting True/False values in a column with other different values.

Hi Power BI Community,

 

I'm trying to conditionally format this table that has True/False values as well as numbers. I would like True to be highlighted in Green and False be red...while the remaining values remain neutral. Please see the image and let me know if I can provide any addtional information.

 

PowerBISample.PNG

Thanks!

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Sorry, please try this.

The measure is to apply condition format as:

v-xulin-mstf_0-1615254434001.png

Could you provide details about your issue?

 

Best Regards,

Link

 

View solution in original post

7 REPLIES 7
v-xulin-mstf
Community Support
Community Support

Hi @Anonymous,

 

You need a measure as below:

 

Measure = SELECTEDVALUE( 'Table'[Column1] ) + 0

 

Then in  the table visual, right click on the column field>choose conditional formatting>Background color:

Annotation 2020-04-08 153326.png

Then make the setting as below:

Annotation 2020-04-08 153501.png

And you will see:

Annotation 2020-04-08 153559.png

Here is the demo, please try it.

 

Best Regards,

Link

Anonymous
Not applicable

Hi @v-xulin-mstf, I was able to create the measure. However when I go to apply it to the column, I get the error that I "cannot convert value 'FALSE' of type Text to type Number. Is there another work around for this?

 

Also I tried to click through to the demo but it states that I do not have access to the sharepoint. 

 

Thank you!

Hi @Anonymous,

 

Sorry, please try this.

The measure is to apply condition format as:

v-xulin-mstf_0-1615254434001.png

Could you provide details about your issue?

 

Best Regards,

Link

 

Anonymous
Not applicable

Thank you! It finally worked. I need to change the data type. 

PhilipTreacy
Super User
Super User

@Greg_Deckler 

Hi Greg, OP has replied but not tagged you.

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Greg_Deckler
Community Champion
Community Champion

@Anonymous Seems like that would have to be a text column so just use Conditional Formatting Rules where if the text equals "TRUE", green, "FALSE", red or otherwise black?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hey Greg, thanks for getting back to me! This may be obvious, but it's only allowing me conditionally format based on numeric values and don't know where to find the text option.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.