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

Help with CALCULATE and ALLEXCEPT, and Dimensions

I am working with a report that has a Fact table and several dimension tables.

I am trying to calculate a sum of values depending on several filters, so far, I have two "semi" working formulas:

 

FORMULA 1:

_ccAplied =
CALCULATE(
    SUM(FacAccCustomers[AmountLC]),
        ALLEXCEPT(
        FacAccCustomers,
        FacAccCustomers[Table],
        FacAccCustomers[Company],
        FacAccCustomers[Customer],
        FacAccCustomers[Assignment],
        DimCustomer[Name]
        ),
    FacAccCustomers[DocTypeKey]="MRPAB"
)
 
This formula works correctly if the table only has columns from the "Fact" table, however, when I add a column from one of the Dim tables for example DimCust[Name], the resulting table shows all the values from the dimension.
 
omartineztr_0-1709915011935.png

 

FORMULA 2:
_ccAplied_2 =
CALCULATE(
SUMX(
    SUMMARIZE(
        FacAccCustomers,
        FacAccCustomers[Company],
        FacAccCustomers[Customer],
        FacAccCustomers[Assignment],
        "_cc_Net",SUM(FacAccCustomers[AmountLC])),
        [_cc_Net]
),
FacAccCustomers[DocTypeKey]="MRPAB")
 
This formula somehow shows the total value correct, but at row level the cell is blank.
omartineztr_1-1709915029071.png

 

What am I missing here?
Thank you!

1 REPLY 1
lbendlin
Super User
Super User

See if REMOVEFILTERS is a more appropriate approach.

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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