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

Measure filtered by multiple related records

Hello - I am wondering it it is possible to create a measure filtered by multiple related records. For example, a contact table is related to an activities table. I would like to count the contacts that have activities with the subject of "call1" and "call2". Where I think I am getting stuck is that it's multiple activities needing to be considered.

 

Thanks in advance!

Rob

1 ACCEPTED SOLUTION

hi @Anonymous 

Try this logic:

 CALCULATE(<expression>,FILTER('Table',"call1" in VALUES('Table'[subject]) && "call2" in VALUES('Table'[subject]) ))

 

If you still have the problem, please share some simple sample data and your expected output.

 

Regards,

Lin

Community Support Team _ Lin
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

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , Not sure I got it.

A new measure like

calculate([Measure], filter(Table, Table[subject] in { "call1" , "call2"}))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks for the quick reply, but unfortunately not the end result I am expecting. This seems to operate more as an OR statement than an AND statement. I only want to count the count the contacts with both... thoughts?

 

Thanks again!

Rob

hi @Anonymous 

Try this logic:

 CALCULATE(<expression>,FILTER('Table',"call1" in VALUES('Table'[subject]) && "call2" in VALUES('Table'[subject]) ))

 

If you still have the problem, please share some simple sample data and your expected output.

 

Regards,

Lin

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

Thanks! This works!

 

TBH, I don't really understand they syntax here, but it does work!

 

Rob

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!

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.

Top Solution Authors