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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
v_mark
Helper V
Helper V

Multiple filter conditions in calculate from two different tables

Hi, 

 

I need to know how many IDs are affected by this kind of filter. 

There are two tables involved in this process 

Which connected through Many To One relationship 

 

Initially, I create a measure 

Count Incidents = count(IncidentIDs) 

FinalMeasure=
CALCULATE (
[Count Incidents],
'Incident[IncidentType] = "Incident",
'Incident'[AssignedTeam] = "Helpdesk",
'Incident'[Status] = "Closed",
'Incident'[LinkedProblem] = BLANK (),
'Task'[ParentPublicID] = "Incident",
'Task'[OwnedByTeam] = "Helpdesk",
'Task'[Status] = "Closed",
'Task'[CloseCode] = "Completed"
)
 
Not sure if this is the right way to write this kind of calculate but ideally I want to know the proper way to write it.
Any Suggestion or Tips is highly appreciated 
 
Thank you in advance
4 REPLIES 4
Anonymous
Not applicable

Will the final measure will not work on this kind of model? 

Anonymous
Not applicable

@v_mark 

 

Your measure may work on the model you have. I'm trying to shield you from problems later down the line... But it's up to you if you choose to ignore or follow.

 

By the way, you have showed a measure but you have not told us what you really want your measure to do. So, you've got a measure that does something but nobody knows if this is what you want the measure to do... You might say: "Wait! But I've told you at the very beginning of my post!" Well, not really. Your measure does not obey filters that might already exist on the columns you've put in your measure. Is this what you want? Nobody knows... If you want the filters coming from outside to be honored, you have to wrap the relevant filters in your measure in KEEPFILTERS. For instance. But I'd suggest you should really start with reading the articles I've given you links to.

yes I want to honor those outside filters 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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