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
Anonymous
Not applicable

Conditional Formatting - more than one condition from a different table

Hello everyone,

Beginning Power BI user, first time poster and all around nice guy here...

 

I read this thread:
https://community.fabric.microsoft.com/t5/Desktop/Conditional-formatting-based-on-another-table/m-p/...

 

And I noted vivran22's response that had this example in it:

WirlTH_1-1704390819296.png

My question is can these measures have multiple conditions for them?

I have a table that I'd like to use to highlight a field but there are FOUR fields that all have to match for the field to highlight. 

 

Due to HIPAA policies, I'm unable to share any files so I apologize in advance. 

 

Thank you!

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Yes @Anonymous 

You can you multiple conditions in switch statements from different tables. Please use variable and switch statements.
Like one example

Measure = VAR _1stColumn = SELECTEDVALUE(your column)
VAR _2ndColumn = SELECTEDVALUE(your column)
RETURN
SWTICH(
TURE(),
Condition like you shared image)

I understand you can't share project-specific documents, it makes sense.
Please create a sample record and share it with the expected result. So you get answers quickly
Please ref this article
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216

If solves your requirement, please mark it as SOLUTION. Appreciate your KUDOS 

Thanks
Pijush







Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

You can try this:

Measure =
SWITCH(
    TRUE(),
    Judgment condition 1 && Judgment condition 2 && Judgment condition 3 && Judgment condition 4, “output1”
    Judgment condition 5, “output2”
)


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PijushRoy
Super User
Super User

Yes @Anonymous 

You can you multiple conditions in switch statements from different tables. Please use variable and switch statements.
Like one example

Measure = VAR _1stColumn = SELECTEDVALUE(your column)
VAR _2ndColumn = SELECTEDVALUE(your column)
RETURN
SWTICH(
TURE(),
Condition like you shared image)

I understand you can't share project-specific documents, it makes sense.
Please create a sample record and share it with the expected result. So you get answers quickly
Please ref this article
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216

If solves your requirement, please mark it as SOLUTION. Appreciate your KUDOS 

Thanks
Pijush







Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.