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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
yasbos
Resolver I
Resolver I

Filter based on columns from two different tables

Hi, team. I need to create this measure where the expression below is based on values in table T1. T1 is related to T2 and T3 many-to-one with both.
The problem is that I need to filter based  on two different columns, one in each of the related tables, T2 and T3, BUT I need to OR the two filter conditions. Is there a way to do that?

calculate(expression, filter(T2,column1="value") OR FILTER( T3, Column2="value"))
 
Thanks.
2 REPLIES 2
v-binbinyu-msft
Community Support
Community Support

Hi @yasbos ,

In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu

Hi, @v-binbinyu-msft. Thanks. I actually got a tip from a coworker of mine to do the below. It worked, but neither I nor my coworker know how it worked LOL.

CALCULATE(expression, FILTER(CROSSJOIN( ALL(T2[column1]), ALL(T3[column2])), T2[column1]= "value" || T3[column2] = "value" ))



Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.