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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
aetherial
Regular Visitor

Conditional formatting from slicer with multi column

hi,

Im new in Power BI and I would like to create conditional formatting for my dashboard with table below.

Currently I was able to make slicer from multi columns below ( Category A - D ) so whenever I select from slicer this will show any fruit name contain from all column.

 

Store NameCategory ACateogry BCategory CCategory D
Store AAppleBananaMangoBanana
Store BBananaMangoMangoApple
Store CApplePinnapleAppleApple
Store DMangoStrawberryStawberryBanana

 

Next I would like to highlight selected fruit name with conditional formatting, so for example from slicer I check on Apple, this name from Category A - D will be highlighted. I just noticed conditional formatting menu in BI only for number not text.

Any advice on how to achieve this? appreciate if any help

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

Hi @aetherial ,

 

You could create a same table in query editor.

Then create a measure to define color in conditional formatting. 

 

Measure = 
IF(SELECTEDVALUE(Query1[Value])=SELECTEDVALUE('Table'[Category A]),"red")

 

Here is the result.

1-1.PNG

Here is my test file for your reference.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @aetherial ,

 

You could create a same table in query editor.

Then create a measure to define color in conditional formatting. 

 

Measure = 
IF(SELECTEDVALUE(Query1[Value])=SELECTEDVALUE('Table'[Category A]),"red")

 

Here is the result.

1-1.PNG

Here is my test file for your reference.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @aetherial ,

 

you can specify the formatting using a DAX calculation.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#color-...

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.