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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors