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

Win a FREE 3 Day Ticket to FabCon Vienna. Apply now

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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