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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.