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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Running Total by Index and category

Hi,

 

Can you help me make the running total like the example in the excel below but as a DAX calculation?

 

Thank you. 🙂

Xilitor01_0-1652953853742.png

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Running Total = 
var currentEvent = SELECTEDVALUE('Table'[Event number])
return CALCULATE( SUM('Table'[Quantity]),
ALLEXCEPT('Table'[Case]),
'Table'[Event number] <= currentEvent
)

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

Running Total = 
var currentEvent = SELECTEDVALUE('Table'[Event number])
return CALCULATE( SUM('Table'[Quantity]),
ALLEXCEPT('Table'[Case]),
'Table'[Event number] <= currentEvent
)

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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