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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Dom87326
Helper II
Helper II

CALCULATE modifiers

Hello, 

 

I'm wondering can we use ALLEXCEPT and FILTER together as a CALCULATE modifier?

 

In the below measure I'm taking the average of Answer Result for year 2022 without ignoring client industry and client category filters. 

Data model: 

dim date 1:many answer result
dim client 1:many answer result 

 

Measure:

BenchmarkAnswerNumeric =
CALCULATE (
AVERAGE ( Total[AnswerResult] ),
ALLEXCEPT (
DIM_CLIENT,
DIM_CLIENT[ClientIndustry],
DIM_CLIENT[ClientCategory]
),
FILTER('Date', 'Date'[Year] = 2022)
)
 
Thanks! 
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

@Dom87326 

ALLEXCEPT is indeed a CALCULATE modifier. However, FILTER is a table. And yes of course you can use both together. 
In you measure ALLEXCEPT basically removes all the filters from all DIM_CLIENT table columns except the two columns indicated inside ALLEXCEPT. 
FILTER is replacing the filter from the date table - year column with the value 2022

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

@Dom87326 

ALLEXCEPT is indeed a CALCULATE modifier. However, FILTER is a table. And yes of course you can use both together. 
In you measure ALLEXCEPT basically removes all the filters from all DIM_CLIENT table columns except the two columns indicated inside ALLEXCEPT. 
FILTER is replacing the filter from the date table - year column with the value 2022

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.