Katherine has attended:
Power BI Reporting course
Power BI Modelling, Visualisation and Publishing course
Cumulative sum - Start time as Categories & Count of Start time
Hi,
I need help in getting the cumulative sum of the sample matrix table below
Time Count of time
06:00 - 10
07:00 - 20
08:00 - 30
09:30 - 40
The time and count of time were all from the same column.
RE: Cumulative sum - Start time as Categories & Count of Start t
Hi Katherine,
Thank you for the forum question.
You will have to split the column into two columns to calculate cumulative sum.
To help with the DAX for the cumulative sum I will need to know if you have a DATE table and if the cumulative sum should be calculated over periods.
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
RE: Cumulative sum - Start time as Categories & Count of Start t
Hi Jens,
Thank you for your response.
Will split it into two columns as suggested.
Yes, I do have a date table on my dataset.
I am not sure if it is possible, but I would like the count to reduce once particularly shift has ended.
For instance, the shift will start at 6AM and end at 2PM.
Then, it wouldn't be counted anymore for the succeeding intervals.
Please see sample below:
06:00 1
06:30 1
07:00 1
07:30 1
08:00 1
08:30 1
09:00 1
09:30 1
10:00 1
10:30 1
11:00 1
11:30 1
12:00 1
12:30 1
13:00 1
13:30 1
14:00 0
14:30 0
15:00 0
15:30 0