Forum Discussion

aetherial's avatar
aetherial
Regular Visitor
6 years ago
Solved

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

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

    Here is my test file for your reference.

     

3 Replies