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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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