This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi everyone!
I'm trying to visualize the bookings of different rooms and I have sample data below. I have Start Dates with time and End Dates with time and have created the column Booked Dates that goes from start to end with an increment of 1 hour.
Any ideas how I can visualize the booked time vs. the unbooked time? General tips would be greatly appreciated as I'm stuck. I would like to be able to show the intensity of the bookings, like for a gym, both with weekday and time of day. I've tried many approaches, for example counting the number of DistinctFridays, which consistently return one day less than what is booked. Index for Booking = 0 is booked two Fridays, but it returns 1.
Index for OrderIndex for BookingLab Area RoomLab AreaRoomStart DateEnd DateDates BookedWeekday NameSingle DayDuration DaysDuration HoursDuration Days GroupingDuration Days Grouping Index
| 0 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 09:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 1 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 10:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 2 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 11:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 3 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 12:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 4 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 13:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 5 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 14:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 6 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 15:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 7 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 16:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 8 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 17:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 9 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 18:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 10 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 19:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 11 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 20:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 12 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 21:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 13 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 22:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 14 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-18 23:00:00 | Friday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 15 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-19 00:00:00 | Saturday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 16 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-19 01:00:00 | Saturday | FALSE | 7 | 179 | 3 - 7 days | 3 |
| 17 | 0 | PV23.3,P02 | PV23.3 | P02 | 2023-08-18 09:00:00 | 2023-08-25 20:00:00 | 2023-08-19 02:00:00 | Saturday | FALSE | 7 | 179 | 3 - 7 days | 3 |
Solved! Go to Solution.
Hi @snilss91 - I recommend using a heatmap-style visualization and some DAX measures to properly count booked vs. unbooked time. i have created dax measure in attachment. please check attached pbix file FYR
Proud to be a Super User! | |
Hi @snilss91 - I recommend using a heatmap-style visualization and some DAX measures to properly count booked vs. unbooked time. i have created dax measure in attachment. please check attached pbix file FYR
Proud to be a Super User! | |
Great, thank you! Now I have a bit more to work with.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 32 | |
| 26 | |
| 24 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 50 | |
| 31 | |
| 26 | |
| 22 |