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

View all the Fabric Data Days sessions on demand. View schedule

Reply
IlMoro
Helper II
Helper II

Showing a color if a value is present in at least one cell

Hi,

 

I have a column with "yes" and "no" data.

 

I would visualize a green box normally but if there is at least one "yes" then the box have to turn red. I need just color, no text or whats so ever inside the box.

 

Thanks for any support

1 ACCEPTED SOLUTION

Hi @Greg_Deckler  and thanks for the tips however I was searching something more easy without the need of creating new columns.
I found it in just creating the card --> Format your visual --> Effects --> Background --> Color --> Conditional Formatting "FX icon".
Eventually it can be applied also to the text thesame conditional formatting to let the whole card have the same color.

View solution in original post

10 REPLIES 10
hashtag_pete
Helper V
Helper V

Hello @IlMoro 

you can find some help in this article. 

Tips on displaying icons based on field values in ... - Microsoft Power BI Community

Best regards

hashtag_pete

Hi @Greg_Deckler 

 

I tried to read the article but I cannot get into it and I don't think it fits with my easy need.

I just need a "card" that can change color due to two basic conditional formatting rules.

I tried "Advance Card" visualization but it does not work.

@IlMoro If you want a specifici solution, then you are going to need to provide specific information.

Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



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

Hi @Greg_Deckler , I already posted everything down below.

Greg_Deckler
Community Champion
Community Champion

@IlMoro Create a flag measure that returns 1 or 0 depending on color. Create a measure like: Measure = " ". Put said measure in table and base background conditional formatting on your flag measure. 

 

There are lots of other ways as well.



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

May you be please more specific? Not an expert at all...

@IlMoro No, I can't because you haven't explained things very well. Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



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

Here is the example:

Capture1.JPGCapture2.JPG

Hi,

given your example, I would create an additional column next to your Column1, saying 

Column2 = if([Column1] = "yes", 1, 0)

then you can make a measure 

Indicator = sum([Column2])

place this measure in your card and make it conditional: if Indicator >0 then red, else green

Does that help?

Hi @Greg_Deckler  and thanks for the tips however I was searching something more easy without the need of creating new columns.
I found it in just creating the card --> Format your visual --> Effects --> Background --> Color --> Conditional Formatting "FX icon".
Eventually it can be applied also to the text thesame conditional formatting to let the whole card have the same color.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors