Forum Discussion

Saes's avatar
Saes
Icon for Helper I rankHelper I
2 years ago
Solved

Calculate Opening, Movement and Closing Balances

Hello all,

 

I've got some repairs data and I'm trying to calculate the following for each month of the year, but every method I have tried is not returning the expected results:

  • Number of jobs open at start of the month
  • Number of jobs logged in-month
  • Number of jobs closed in-month
  • Closing balance at the end of the month

 

The data set looks like this:

 

Job ID

Date Logged

Completion Date

JOB00001

12-Oct-23

03-Jan-24

JOB00002

14-Nov-23

NULL

JOB00003

12-Dec-23

23-Dec-23

JOB00004

15-Jan-24

20-Jan-24

JOB00005

16-Jan-24

NULL

JOB00006

20-Jan-24

NULL

etc.

etc.

etc.

 

And we would like to present it like this:

 

 

Open Jobs at Start of Month

Jobs Logged In-Month

No of Jobs Complete In-Month

C/B

April

5,407

8,676

(8,760)

5,323

May

5,323

7,989

(8,325)

4,987

June

4,987

7,896

(8,464)

4,422

 

Can anyone help?

1 Reply