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

Aggregate calculated column by category

Hi all

 

New to DAX/Power BI, and I have the following issue. I have the data from column A-D, and I want to calculate column E. Can anyone point me in the right direction?

 

Capture10.PNG

 

 

 

 

 

 

 

 

Thanks. 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous 

 

Hi

 

=
CALCULATE (
    SUM ( TableName[SalesAmount] ),
    ALLEXCEPT ( TableName, TableName[Sales-Country], TableName[Year-Week] )
)

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous 

 

Hi

 

=
CALCULATE (
    SUM ( TableName[SalesAmount] ),
    ALLEXCEPT ( TableName, TableName[Sales-Country], TableName[Year-Week] )
)
Anonymous
Not applicable

@Zubair_Muhammad  That works, thanks! 

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!

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