The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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:
Solved! Go to Solution.
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
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
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |