Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Josh_I
Frequent Visitor

Occupancy % by hour

Hello All, 

 

I am trying to get the hourly occupancy.

I the have a start date / start time and end date / end time of each transaction (see example of dataset below). The total stalls per Lot is in a different table (REVLOTS [StallCount])

 

occupancy example.jpg

 

 

 

 

Appreciate the help!

3 REPLIES 3
kentyler
Solution Sage
Solution Sage

You might be able to use a calander table and an hour table (hours in a day).

Then it might help to change the granularity of your data and turn it into a set of records that records one record for each hour of occupancy.

Then your calculations of percent of occupancy should be much simpler.





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


What would be the best way to change the granularity of each transaction to show it per hour instead of the time range?

for example, your first record, that goes from 2 pm one day to 12 pm the next would expand into 22 records, one for each day/hour of occupancy.





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.