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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
lammec01
Frequent Visitor

How to visualize occupancy over time

I have a basis excel file where per machine I have the start and end time of when it was "in use". I need a timeline (per hour) with the occupied time per machine. For example if a machine was in use from 11u45 till 13u30 ... it was in use 15 min (from 11u), 60 min (from 12u) and 30 min (from 13u). If I can transform my date like that I can visualize this in a bar chart. Any ideas on how to transform my data? 
2023-11-12 17_51_20-Book1 - Excel.png
2 REPLIES 2
lammec01
Frequent Visitor

Thanks for the response.

I am however missing still some data.

 

Machine 1 is in use from 10u00 till 11u30 and from 14u00 till 16u15.

 

I should get result like this

10u --> 60 min occupied

11u --> 30 min occupied

14u --> 60 min occupied

15u --> 60 min occupied

16u --> 15 min occupied

 

In your solution I am missing 15u timeslot.

 

 

 

v-stephen-msft
Community Support
Community Support

Hi @lammec01 ,

 

You can split two column with "u", and then pivot them.

vstephenmsft_2-1700027534934.png

vstephenmsft_1-1700027508143.png

vstephenmsft_3-1700027554912.png

Repeat the operation for Column3.

vstephenmsft_4-1700027747191.png

Duplicate it and append them.

vstephenmsft_5-1700027836327.pngvstephenmsft_6-1700027841961.pngvstephenmsft_7-1700027855590.pngvstephenmsft_8-1700027861372.png

Pivot:

vstephenmsft_9-1700027957952.png

vstephenmsft_10-1700027964122.png

 

You can download my attachment for more details.

 

Best Regards,

Stephen Tao

 

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.