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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Events in progress per hour slot aggregated across multiple days

Hi guys,

 

I am looking at booking data of a number of assets in the following format:

 

Asset IDBooking IDstartedfinishedstarted_hourfinished_hour
41541706/09/2020 18:47:2806/09/2020 19:22:0706/09/2020 18:00:0006/09/2020 19:00:00

 

Important to know: Bookings can stretch over more than 1 day.

 

What I would like to have as an output is a measure that counts all ongoing bookings aggregated for every hour slot over a certain period of time.

 

The desired output (in table form) would look something like this:

 

started_hourfinished_hourCount bookings in progress
08:0009:005
09:0010:004
.......

 

I have managed to count the bookings in progress per hour slot for every day individually, but not aggregated across multiple days. Do you have any ideas how to do that?

 

Cheers,

Lukas

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Quite different than I thought,

 

but this thread provides a solution by expanding every booking into hour block:

 

https://community.powerbi.com/t5/Desktop/Calculating-hourly-occupancy-of-a-medical-clinic-based-on-a...

 

Cheers,

Lukas

View solution in original post

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

@Anonymous Have a look at Open Tickets - https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364#M147

 

If you could share more sample data as text could probably whip up a version of this for you.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks for the link. From what I can see this solution allows you to filter on the number of open tickets across any date range. What I would like however is to count the open 'tickets' (in my case bookings) independet of the date and only based on the time dimension. Please let me know if I missed something.

Anonymous
Not applicable

Quite different than I thought,

 

but this thread provides a solution by expanding every booking into hour block:

 

https://community.powerbi.com/t5/Desktop/Calculating-hourly-occupancy-of-a-medical-clinic-based-on-a...

 

Cheers,

Lukas

Fowmy
Super User
Super User

@Anonymous 

Create a disconnected Table with Start and End hour bracket for 24 Hours. Create a measure to count records that fall within the range of the hours in the disconnected table.

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Thanks - I guess that works in case bookings wouldn't span across multiple dates

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (4,591)