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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
pbiforum123
Post Patron
Post Patron

Cumulative sum in DAX

How to get the output column in daxHow to get the output column in dax

We need above output column using DAX. Can someone please share the working DAX.

1 ACCEPTED SOLUTION
DOLEARY85
Super User
Super User

Hi,

 

try this:

 

Running Total (m) =
CALCULATE(SUM ( 'Table'[Sales] ),FILTER(ALL('Table'),'Table'[Employee] = MAX('Table'[Employee])&&'Table'[Date]<=MAX('Table'[Date])))
DOLEARY85_1-1691078981349.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

1 REPLY 1
DOLEARY85
Super User
Super User

Hi,

 

try this:

 

Running Total (m) =
CALCULATE(SUM ( 'Table'[Sales] ),FILTER(ALL('Table'),'Table'[Employee] = MAX('Table'[Employee])&&'Table'[Date]<=MAX('Table'[Date])))
DOLEARY85_1-1691078981349.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.