This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hi all,
I have seen online and theres many ways of calculating the running total or cumulative total.
I have a column Collection Litres and a date column Sample Date. I woud like to calculate the running total YTD for collection litres. If i select sample date 01/02/2021 - 28/02/2021, the total should sum collection litres from March 2020 until Feb 2021.
TIA
Yasir
Solved! Go to Solution.
Hi @yaman123
If your column Collection Litres and column Sample Date are in the same table, you may take steps below for reference.
1. create measure total_YTD
-
it calculates the total_YTD between 2016/6/16 - 2017/6/30
Best Regards,
Community Support Team _ Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @yaman123
If your column Collection Litres and column Sample Date are in the same table, you may take steps below for reference.
1. create measure total_YTD
-
it calculates the total_YTD between 2016/6/16 - 2017/6/30
Best Regards,
Community Support Team _ Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@yaman123 , Try a measure like
New measure =
var _max = maxx(allselected('Date', 'Date'[date])
var _min = eomonth(_max,-12)
return
calculate(sum(Table[Value]), filter(all('Date'), 'Date'[date] >=Min && 'Date'[date] <=_max))
or
New measure =
var _max = maxx(allselected('Date', 'Date'[date])
var _min = eomonth(_max,-12)
return
calculate(sum(Table[Value]), filter(all('Date'), 'Date'[date] >=Min && 'Date'[date] <=_max && Date[Date] <=max(Date[Date])))
If you need trend refer: https://www.youtube.com/watch?v=lOEW-YUrAbE
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 19 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 24 | |
| 23 | |
| 20 | |
| 20 | |
| 19 |