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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
naoyixue1
Post Patron
Post Patron

How to add the running total column

Hey there,

 

Do you know how to add a column to highlight the running total by date and by SKU ? Thanks!

naoyixue1_0-1688145511963.png

 

1 ACCEPTED SOLUTION
naoyixue1
Post Patron
Post Patron

I think I figured it out. The formula should be as below..

 

naoyixue1_0-1688419821649.png

 

View solution in original post

10 REPLIES 10
naoyixue1
Post Patron
Post Patron

I think I figured it out. The formula should be as below..

 

naoyixue1_0-1688419821649.png

 

lucadelicio
Super User
Super User

I hope I have been helpful.
Mark it as a solution if resolve your problem.

Ciao!



Luca D'Elicio

LinkedIn Profile
naoyixue1
Post Patron
Post Patron

Any thoughts? I'm thinking I should apply sumx with earlier function by SKU and by Date...any thoughts? Thanks!

Is this what you want?

lucadelicio_0-1688286500197.png

Measure =
CALCULATE(
    SUM(Tabella1[DEMANDS])
    ,DATESYTD(Tabella1[DATE])
)
I miss a comma on the formula.

I hope I have been helpful.
Mark it as a solution if resolve your problem.

Ciao!



Luca D'Elicio

LinkedIn Profile

Sorry, it doesn't work. But thank you though.

 

naoyixue1_0-1688419658828.png

 

lucadelicio
Super User
Super User

Try:
Measure =
CALCULATE(
SUM('Table'[Demands])
DATESYTD('Datatable'[Date])
)


I hope I have been helpful.
It's more easier to help you if you upload your pbix.
Mark it as a solution if resolve your problem.

Ciao!



Luca D'Elicio

LinkedIn Profile

Thanks for your help. But it doesn't work.  

It doesn't work because you don't ask if it is a measure or a calculated column. I give you a measure and you use it like a calculated column.



Luca D'Elicio

LinkedIn Profile

Oh, gotcha. thanks!

Mark it as a solution if resolve your problem.

Ciao!



Luca D'Elicio

LinkedIn Profile

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.