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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Gvandijk
New Member

Occupancy rate of the building

I am mapping out how the different spaces in the building are used. for this I have an export with all planned appointments per time slot. For each appointment I have a line with the room number and the start and end time of the appointment. These reservations vary from a duration of 15 minutes to 10 hours. I want to provide insight into the occupancy per room per quarter of an hour and present this in a visual. I cannot yet find an option to convert this into time slots of 15 minutes.

1 ACCEPTED SOLUTION

Hi @Gvandijk ,

In response to the data you provided further, here are my answers.

Create a table of what you are showing.

vyilongmsft_0-1708335203900.png

Create a new calculated column to calculate elapsed time.

Column = HOUR('Table'[Duration]) * 60 + MINUTE('Table'[Duration])

vyilongmsft_1-1708335475156.png

Then calculate the number of experiences every 15 minutes.

Column 2 = 'Table'[Column] / 15

vyilongmsft_2-1708335631654.png

Finally turn it into a visualization to get the results you need.

vyilongmsft_3-1708335665463.png

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Gvandijk
New Member

@v-yilong-msft , thank you for your reply. I read the topic about the 15 minutes interval but the problem is that i have two colums with time (start / end) with a different duration. I woud like to visualise this data in the graph you suggested. Here is an small example of the dataset:

Gvandijk_0-1707898305137.png

 

 

Hi @Gvandijk ,

In response to the data you provided further, here are my answers.

Create a table of what you are showing.

vyilongmsft_0-1708335203900.png

Create a new calculated column to calculate elapsed time.

Column = HOUR('Table'[Duration]) * 60 + MINUTE('Table'[Duration])

vyilongmsft_1-1708335475156.png

Then calculate the number of experiences every 15 minutes.

Column 2 = 'Table'[Column] / 15

vyilongmsft_2-1708335631654.png

Finally turn it into a visualization to get the results you need.

vyilongmsft_3-1708335665463.png

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

v-yilong-msft
Community Support
Community Support

Hi @Gvandijk ,

Based on your questions, here are my answers.

I started by creating a table based on your description.

vyilongmsft_0-1707874151774.png

Then create a new column named 15Min_Data. Here are the DAX codes:

15Min_Data = ROUNDDOWN('Table'[Time] * 24 * 60 / 15, 0) / (24 * 60 / 15)

vyilongmsft_1-1707874342383.png

Now you can create visuals based on this new column.

vyilongmsft_2-1707874429861.png

It is possible to determine the time interval based on this image, and you can also read this topic for more information: Solved: Creating 15 Minute intervals from Date and Time Co... - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

How to Get Your Question Answered Quickly 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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