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
Anonymous
Not applicable

Running total

Hello,

 

I need assistance with a formula for running total. I am using the formula below, but as you can see from the screenshot, the running total is not being calculated. What am I doing wrong?

 

RT_BUD_CL = TOTALYTD ( SUM('Summary Query'[BUD CL]), 'Summary Query'[DATE].[Date] )

 

'Summary Query'[BUD CL] is the value column

'Summary Query'[DATE] is the date column

 

 

Running Total.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Seth_OttoBros, What an annual total and measure

Total measurement running with date table

Cumm ? CALCULATE(SUM('Summary Query'[BUD CL]),filter(allselected(date),date[date] <-maxx(date,date[date])))
Cumm ? CALCULATE(SUM('Summary Query'[BUD CL]),filter(allselected(date),date[date] <-max('Summary Query'[DATE])))

Como una nueva columna
Cumm á CALCULATE(SUM('Summary Query'[BUD CL]),filter('Summary Query','Summary Query'[DATE] <-earlier('Summary Query'[DATE] )))

To get the best out of the time intelligence function. Make sure that you have a date calendar and that it has been marked as the date in the model view. Also, join her with the date column of your events. See :radacad sqlbi My Video Series Appreciate your congratulations.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Seth_OttoBros, What an annual total and measure

Total measurement running with date table

Cumm ? CALCULATE(SUM('Summary Query'[BUD CL]),filter(allselected(date),date[date] <-maxx(date,date[date])))
Cumm ? CALCULATE(SUM('Summary Query'[BUD CL]),filter(allselected(date),date[date] <-max('Summary Query'[DATE])))

Como una nueva columna
Cumm á CALCULATE(SUM('Summary Query'[BUD CL]),filter('Summary Query','Summary Query'[DATE] <-earlier('Summary Query'[DATE] )))

To get the best out of the time intelligence function. Make sure that you have a date calendar and that it has been marked as the date in the model view. Also, join her with the date column of your events. See :radacad sqlbi My Video Series Appreciate your congratulations.

Anonymous
Not applicable

Thanks Amit, works perfectly.

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.

Top Solution Authors