cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Occupancy Summarizing

Hello,

 

I've been attempting to get occupancy to show visually day by day levels and after going through several occupancy questions I have that working using the below formula. 

 

Occupied Rooms2 =
CALCULATE(
DISTINCTCOUNT(Sheet1[RESNO]),
FILTER(
ALL(Sheet1),
MAX('CalendarTable'[Date Table])>= Sheet1[ARRIVAL]
&& MAX('CalendarTable'[Date Table])<'Sheet1'[DEPART]
)
)
 

Unfortunately, with this solution I've been unable to summarize the data.  I'd like to be able to include a slicer and see the total number of rooms occupied over that time.  Using a card and slicer, this measure remains blank unless the start or end date has people staying.  I'd also like to be able to look at the occupancy by day of week.

 

I've tried other measures as well but the ones that tended to be summarized were taking the data from the arrival date rather than the actual stay date.  So a week stay arriving 2/29 would put seven days in February rather than one.

 

Here is the link to my report.

 

Thank you in advance for any and all assistance.

Seth

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IX
Super User IX

Re: Occupancy Summarizing

Could be mistaken but it looks like you want Open Tickets: https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/td-p/409364


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
Highlighted
Super User IX
Super User IX

Re: Occupancy Summarizing

Could be mistaken but it looks like you want Open Tickets: https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/td-p/409364


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Solution Authors