Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

cumulative sum start

Forum home » Delegate support and help forum » Microsoft Power BI training and help » Cumulative sum - Start time as Categories & Count of Start time

Cumulative sum - Start time as Categories & Count of Start time

ResolvedVersion 365

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

 

Training courses

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Power BI tip:

Page and Tab Shortcuts

Ctrl + Page Up/Page Down: Navigate between pages.
Ctrl + T: Create a new page.
Ctrl + Shift + F10: Toggle between fields pane and report canvas.

View all Power BI hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.