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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Expand hours in days based on start and end date

Hi Power BI experts! 🙂

 

I have a table like

 

vestabs_0-1682670102626.png

 

I need to a graph to show each day as 24 hours and hours' duration for each item. Like

01/01/2023 A:11 hours, B: 14,5 hours

02/01/2023: A: 1 hour B: 5,5  C: 1 hour and D 14 hours

03/01/2023: D 2,0 hours 

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

You can create a gantt visual as below screenshot to achieve it, please find the details in the attachment.

vyiruanmsft_0-1682929890078.png

vyiruanmsft_2-1682930349363.png

vyiruanmsft_3-1682930374646.png

 

 

In addition, please review the solution in the following links. Later check if they can be used as an workaround...

Solved: timestamp - last 24 hours on x axis (for me its sh... 

vyiruanmsft_1-1682930202600.png

Solved: Shift Report over 24hr clock by Time and Day


Here is how I would approach this in a matrix visual.

1.  Make a disconnected table of times in the query editor with = List.Times(#time(0,0,0),96,#duration(0,0,15,0)), convert to table, rename it, and load it.  

 

2. Make a matrix visual with this new column as the columns

 

3.  Use a measure like this to count the number of people working during that timeslot.  TimeSlot is the table with the 15 min increments from step 1)

 

You should be able to use your Date column on rows in the matrix.


Best Regards

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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