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
Outseid
Regular Visitor

IF logic between columns - filtering

Hi,

 

I will do my best to describe the issue I've encountered during my current project.

There are two tables - Table 1 and Table 2. Both contain various columns and are linked through a reference table with unique values. They are based on cases - both tables reference one case, just two different statuses from separate systems.

The requirement I was given is to display data where at least one of the case statuses is "open", as you can see below.

The dashboard filter will only let me display one of the two options from tables or both combined, but still won't get the result as below. 

I believe the table below will help.

 

Basically, it's:

1+0 = 1

1+1 = 1

0+1 = 1

0+0 = 0

 

So all records with '1' as a result should be displayed and the last one, with both statuses 'closed' should not be displayed.

 

Table 1Table 2Displayed
OpenClosedTRUE
OpenOpenTRUE
ClosedOpenTRUE
ClosedClosedFALSE

 

Is there actually a solution to this available, or am I doomed to stick to Excel for this comparison?

 

Kind regards,

Mario

1 ACCEPTED SOLUTION
jthomson
Solution Sage
Solution Sage

Could try making a measure:

 

Display = if([tableoneopenfield]="Closed"&&[tabletwoopenfield]="Closed","Don't Display","Display")

 

which will then look at each combination and output Display except in the event where both of your columns say closed. You could then look to filter on that?

View solution in original post

1 REPLY 1
jthomson
Solution Sage
Solution Sage

Could try making a measure:

 

Display = if([tableoneopenfield]="Closed"&&[tabletwoopenfield]="Closed","Don't Display","Display")

 

which will then look at each combination and output Display except in the event where both of your columns say closed. You could then look to filter on that?

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.