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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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.

 

 

 

Anonymous
Not applicable

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors