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
SachinC
Helper V
Helper V

Plotting Time Values In A Graph

Hi there,

I have sample data shown below in the grid.

The time values are by date - with upper and lower boundaries of 6pm and 8pm.

Times should sit between these boundaries.

Ideally I would like to plot a line graph, showing the upper and lower boundaries as lines, where my "actual time" is plotted between. Any values that cross the boundaries are breach of SLA.

Please help me make this work.

Thanks,

 

CollectedDateCollectedTimeLowerboundaryUpperBoundary
04/10/201718:47:2318:00:0020:00:00
30/07/201719:48:0018:00:0020:00:00
09/12/201719:59:4818:00:0020:00:00
09/01/201719:45:5018:00:0020:00:00
15/09/201719:29:4318:00:0020:00:00
08/07/201719:11:0818:00:0020:00:00
19/08/201718:12:5818:00:0020:00:00
24/11/201718:04:3618:00:0020:00:00
11/07/201718:20:0118:00:0020:00:00
17/12/201719:24:0618:00:0020:00:00
25/11/201719:21:3018:00:0020:00:00
05/03/201718:27:1318:00:0020:00:00
22/04/201719:39:1318:00:0020:00:00
30/11/201722:00:0018:00:0020:00:00
23/10/201718:48:5818:00:0020:00:00
23/10/201719:02:0418:00:0020:00:00
1 ACCEPTED SOLUTION

time.PNG

 

you will get something like above



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

2 REPLIES 2
parry2k
Super User
Super User

basically you need to convert your hh:mm to decimal, i'm sure there are other way, let's start with this:

 

add following 3 columns 

 

Upper = VALUE(FORMAT('Time'[UpperBoundary], "hh.mm"))

Lower =  = VALUE(FORMAT('Time'[Lowerboundary], "hh.mm"))

Collected = VALUE(FORMAT('Time'[CollectedTime], "hh.mm"))

add line visual and drop collecteddate on x axis and 3 newly added column to values and change aggregation to max



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

time.PNG

 

you will get something like above



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.