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

Filter a measure by multiple expressions

hi all,

 

I was hoping someone could help me find a way to filter one of my measures by multiple expressions.

 

I am trying to find out the employee utilisation for different job titles within my team

 

ive done the head of service like this 

 

UTHOS = CALCULATE([UTE],
                   FILTER(POT1,POT1[Position] = "HOS"))

 

it returns the utilisation as defined by the measure for the Head of service 

 

I need to find out the  utilsation for the rest of the team, ive tried 

 

ALLTEAM = CALCULATE([UTE],
FILTER(POT1,POT1[Position] = "C,AC,GC,SC"))

 

but it returns a blank graph any advice would be much appreciated

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Try this:

 

ALLTEAM =
CALCULATE (
    [UTE],
    POT1[Position] IN { "C", "AC", "GC", "SC" }
)

Also, if more POT1[Position] values may eventually be added, this measure won't work (since you've hardcoded all of the values in).

 

You could simply ignore "HOS" if you wanted to:

 

ALLTEAM =
CALCULATE (
    [UTE],
    POT1[Position] <> "HOS"
)

You don't need the FILTER() function, since CALCULATE() can handle comparing a column to a static value.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Try this:

 

ALLTEAM =
CALCULATE (
    [UTE],
    POT1[Position] IN { "C", "AC", "GC", "SC" }
)

Also, if more POT1[Position] values may eventually be added, this measure won't work (since you've hardcoded all of the values in).

 

You could simply ignore "HOS" if you wanted to:

 

ALLTEAM =
CALCULATE (
    [UTE],
    POT1[Position] <> "HOS"
)

You don't need the FILTER() function, since CALCULATE() can handle comparing a column to a static value.

Anonymous
Not applicable

 I had no idea about the IN function I also didn't release you dont need filter with calculate.

 

Thanks for your help, its much appreciated

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
Top Kudoed Authors