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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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