Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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 🙂 )
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 🙂 )
Got it, if you have resolved the issue, please mark your reply as answer to close this thread.
Regards,
Cherie
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
92 | |
83 | |
71 | |
49 |
User | Count |
---|---|
143 | |
120 | |
110 | |
59 | |
57 |