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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.