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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jfollen
Frequent Visitor

How to continue running total calculation to a future date

Hello,

 

I am attempting to calculate a running total of tickets based on a 'datecreated' up to the time a customer is expected to use them ('expectedstart').  The formula in the screen shot works fine up through 8/1/2023, which is both the most recent cloud data refresh and the most recent 'datecreated'.  The individual values continue to populate in the 'Tickets by Expected Start' column; however, the running total stops because the formula as it stands now is based upon 'datecreated' and not 'expectedstart'.  Would appreciate advice on how to modify this formula (or even a different approach) to begin a new running total for each new 'expectedstart' date.  For example, the first empty row in the right-hand column would read '66', the one below would read '137', etc.  The end goal of this effort is to produce a visualization that depicts the build-up of tickets purchased over time by each 'datecreated' up until the final total at the 'expectedstart' date.  Thanks in advance for your assistance.  Jim 

 

Running Total question.jpg

2 REPLIES 2
Anil_kapkoti
New Member

For running total you can simply use

 

Running total =

Calculate ( sum[ticket]), filter ( all(date), date[date]<= max(date[dat]))

Anonymous
Not applicable

Hi @jfollen ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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