Forum Discussion

McRobot's avatar
McRobot
Frequent Visitor
5 years ago

Summarising between 2 dates

Hi,

 

I have a table of staff leave data which looks like this

 

NameLeave start dateLeave end datenumber of annual leave days
Joe Bloggs29/03/20217/04/20217

 

I'm looking for a way to summarise this data by month so that in this example, Joe Bloggs would show as the following

 

NameMonthNo of AL days
Joe BloggsMarch3
Joe BloggsApril4

 

Just for added info - I do have a calendar table created but havent found use for it within this issue so far.

 

Any help would really appreciated.

 

All the best,

 

S

2 Replies