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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
zzzsou
Frequent Visitor

Work hour distribution heat map

I have tried sereral times but ended up coming here to look for some help.


Here are my requirements and data

Purpose: I would like to see distrubution of working hours on table (hour *  week day) to see which day or time line are busier than others

 

'data_table' 

zzzsou_6-1694936082519.png

 

each row has 3 essential attributes (Operator, start_date_hour, finish_date_hour) and I added columns for start_weekday and start_hour.

zzzsou_1-1694935534109.png

zzzsou_2-1694935546708.png

 

'hour_table'

zzzsou_3-1694935594639.png

'day_table' 

zzzsou_4-1694935611155.png

and I created two more tables (day_table, hour_table) in order to see all values in x,y axis

zzzsou_5-1694935629491.png

 

 

 

Expectation

zzzsou_8-1694936731720.png

 

As you can see above,

Operator A started work (weekday : 7, hour : 22 pm, duration 8.5 hours) so finished work (weekday :1  hour : 6:30 am)

the table shows 1 hour at (7,22),(7,23),(1,0),(1,1),(1,2),(1,3),(1,4),(1,5) and 0.5 hour at (1,6)

Operator B started work (weekday : 6, hour : 08 am, duration 12 hours) so finished work (weekday :6  hour : 20 pm)

the table shows 1 hour at (6,8)~(6,19)

Operator C started work (weekday : 1, hour : 4 am, duration 12 hours) so finished work (weekday : 1  hour : 10 am)

the table shows 1 hour at (1,4)~(1,9)

 

Could you kindly help me make dax measures for this working hour distribution event?

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@zzzsou Take a look at this for a starting point as I did something very similar to this: Hour Breakdown - Microsoft Fabric Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.