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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PhoenixBird66
Helper III
Helper III

DAX -calculated column to sum values grouped by another column

I want to create a new column called CalculatedBatchTurnover which sums up the values from another column (CalculatedBatchLineTurnover), grouped by another column (Batch Header No).

See the example in my picture below.

Tried to do this a few ways but cant seem to get it right.

Any help greatly appreciated.

 

Capture.JPG

1 ACCEPTED SOLUTION
Cmcmahan
Resident Rockstar
Resident Rockstar

 

CalculatedBatchTurnover = CALCULATE(SUM(Table[CalculatedBatchLineTurnover]),FILTER(Table,[Batch Header No]=EARLIER(Table[Batch Header No])))

View solution in original post

1 REPLY 1
Cmcmahan
Resident Rockstar
Resident Rockstar

 

CalculatedBatchTurnover = CALCULATE(SUM(Table[CalculatedBatchLineTurnover]),FILTER(Table,[Batch Header No]=EARLIER(Table[Batch Header No])))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.