Forum Discussion

g_hill's avatar
g_hill
Frequent Visitor
3 years ago

Monthly Occupancy Figures for Properties

Hello, i'm trying to create a matrix table showing the occupancy levels for some properties however I can't get it to work. 

 

Here is a sample of the dataset. There are multiple tenancies for each room and all have a start and end date.

PropertyTenancy Start DateTenancy End DateTenancy Length
1 High Street01/01/202310/02/202340
1 High Street25/02/202328/02/20233
1 Long Road01/02/202307/02/20236
1 Long Road15/02/202321/02/20236
2 High Street20/12/202210/01/202321
2 High Street11/02/202310/03/202327
2 Long Road09/01/202317/01/20238
2 Long Road03/02/202310/03/202335
3 High Street02/02/202322/02/202320
3 High Street28/02/202318/03/202318
3 Long Road02/02/202311/02/20239
3 Long Road23/02/202304/03/20239

I want to create a table like the one below which shows how many days each property was occupied during the month.

PropertyJan-23Feb-23Mar-23
1 High Street3114 
1 Long Road 14 
2 High Street101810
2 Long Road82510
3 High Street 2018
3 Long Road 144

 

Does anyone have any suggestions on how to do this?

 

Thanks in advance.

2 Replies