This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I want to calculate the running total of the full last 12 calender months. This for Late, on time and grand total.
Above the pivottable of the dataset within excel.
So for 2018-02 on time = 1509. For 2018-03 this should be 1509+1922 etc.
Next month, so when we are in March 2019, calculation should be based on months 2018-03 till 2019-02. I am working with a datetable so when I am able to calculate the date range this should be incorporated within the calculate count function I assume.
Thanks for help in advance!
Solved! Go to Solution.
Solved myself with following calculation (can be accepted as solution 🙂 )
Hi @Anonymous
You may try to create a measure like below:
Measure =
CALCULATE (
SUM ( Table[On time] ),
DATESINPERIOD ( 'Calendar'[Date], LASTDATE ( 'Calendar'[Date] ), -12, MONTH )
)
Regards,
Cherie
I think you should use earlier function like that;
column = CALCULATE(SUM(table[on_time]);FILTER(table;table[On_time_delivery_month]<=EARLIER(table;table[On_time_delivery_month])))
If you share your dataset as text i would help you better.
Hi,
I implemented the running total of the total inbound shipments succesfully as by following calculation, but now I need to build extra filters for calculating the number of Early, Late, On time & Early+On time. These subcategories come from the field 'Purchasing_data[OTD 2d]. So the question is how to implement these extra filters in to the calculation I already have, so that I can create 4 extra measurements for running total in time, running total late, running total early and running total in time+early. Thanks for your help in advance.
Solved myself with following calculation (can be accepted as solution 🙂 )
Hi @Anonymous
Got it, if you have resolved the issue, please mark your reply as answer to close this thread.
Regards,
Cherie
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 21 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 62 | |
| 34 | |
| 33 | |
| 24 | |
| 23 |