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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
rhl94
Advocate III
Advocate III

Filter table based on multiple OR statement across multiple columns

Hi

 

I want to calculate a filtered table based on if one of the three conditions are met across multiple columns and table.

 

This formula express what I want, but TRUE/FALSE statement across multiple columns are not allowed. Any way to bypass this?

 

CALCULATETABLE(
         TableA;
                 TableA[Invoice] <> -1 ||
                 TableA[Status] = "Active" ||
                 TableB[Type] = "Public")
)
 
         
 
1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @rhl94 

 

I believe you can refer to this post:

https://community.powerbi.com/t5/Desktop/FILTER-on-multiple-tables/m-p/304137 

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Calculate-with-filter-on-multiple-tables/m-p/... 

 

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

View solution in original post

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @rhl94 

 

I believe you can refer to this post:

https://community.powerbi.com/t5/Desktop/FILTER-on-multiple-tables/m-p/304137 

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Calculate-with-filter-on-multiple-tables/m-p/... 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

Try like


CALCULATETABLE(
TableA;filter(TableA;
TableA[Invoice] <> -1 ||
TableA[Status] = "Active" ||
TableB[Type] = "Public")
)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Can't mix table a and b in a filter function

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.