Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I would like to create a running total based on different parameters (YTD, Last year (starting at 1/1-12/31),Trailing 12 mo,etc).
I have a table that has Date in column 1, total in column 2.
I have the DAX below caculating a running total, how would i configure it to match the parameters above?
Solved! Go to Solution.
Hey,
currently you have to create a measure for each "time calculation". A good starting point is to create a separate Calendar table and to read through these examples: https://www.daxpatterns.com/time-patterns/
In the future this will become much simpler, as you can read here:
Regards,
Tom
Hey,
currently you have to create a measure for each "time calculation". A good starting point is to create a separate Calendar table and to read through these examples: https://www.daxpatterns.com/time-patterns/
In the future this will become much simpler, as you can read here:
Regards,
Tom
@thampton Based on the information that you have provided, please try this..
RunningTotal = CALCULATE(SUM(TotalColumn), FILTER(ALL(TableName),DateColumn <= EARLIER(DateColumn)) )
It will be always helpful if you can post some sample data and expected output.
Proud to be a PBI Community Champion
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 50 | |
| 42 | |
| 23 | |
| 20 |
| User | Count |
|---|---|
| 139 | |
| 116 | |
| 53 | |
| 37 | |
| 31 |