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
tyw214
Helper I
Helper I

Why is ALLEXCEPT not working as intended?

So first of all, I have a table which is a crossjoin:

TBL_ClientMonth_Corssjoin = 

CROSSJOIN(SUMMARIZE('TBL_Client_Prof_Dates','TBL_Client_Prof_Dates'[YearMonth]),SUMMARIZE(FILTER('CustProf Order',NOT(ISBLANK('CustProf Order'[AccountId]))),'CustProf Order'[AccountId]))

 

tyw214_0-1662053311133.png

 

i then linked the YearMonth of the CrossJoin back to the dates of the date table as shown above.

 

Now I tried a simple measure that should ignore all slicers except date slicers Client_Prof_Dates[Date]:

 

All Except Dates = Calculate(SUM('TBL_ClientMonth_Corssjoin'[Monthly Revenue]), ALLEXCEPT(Client_Prof_Dates,Client_Prof_Dates[Date]))

 

This measure returns a number that is effected by every slicer including a Client Name slicer which is derived from the TBL_ClientMonth_Corssjoin.

 

However, if I do:

All Except Dates = Calculate(SUM('TBL_ClientMonth_Corssjoin'[Monthly Revenue]), ALL(TBL_ClientMonth_Corssjoin[Client Name])

 

It properly ignroes the Client name table, and will be filtered correctly ONLY by the date slicers Client_Prof_Dates[Date] and not the TBL_ClientMonth_Corssjoin[Client Name] slicer.

 

Why is that?

2 REPLIES 2
Anonymous
Not applicable

Hi @tyw214 ,

 

Please try this

All Except Dates =
CALCULATE (
    SUM ( 'TBL_ClientMonth_Corssjoin'[Monthly Revenue] ),
    FILTER (
        ALLSELECTED ( Client_Prof_Dates ),
        [Date] = MAX ( Client_Prof_Dates[Date] )
    )
)

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Tried this formula, and this return the sum of only the Selected Client Name 😞

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.

Top Solution Authors
Top Kudoed Authors