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
craigmon
Helper I
Helper I

Call Centre Duration in a line graph

Guys, Is it still the case that we are unable to put time duration into a line graph.  Its defo not letting me do it at the moment.  The below shows the average outbound call time each contact centre operative.  This is so easy to do in Excel why can it not be done in Power BI?

 

Thanks

 

time.PNG

 

1 ACCEPTED SOLUTION
negi007
Community Champion
Community Champion

@craigmon in this case i suggest you to first create a calculate column to convert timevalues into seconds so that all values are in seconds. Then you create a measure to arrive a minute calculation. This should be able to help you.

 

Calculated column:

time(seconds) = (HOUR('Table'[Time])*60*60 + MINUTE('Table'[Time])*60)
 
Measure:
time(minutes) = SUM('Table'[time(seconds)])/60
 
now you can use the measure in our chart. let me know if it helps you. thanks



Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

View solution in original post

4 REPLIES 4
negi007
Community Champion
Community Champion

@craigmon you can convert your time values into minutes and then show minutes in the chart like below

time(minutes) = HOUR('Table'[Time])*60 + MINUTE('Table'[Time])
 

negi007_0-1619622200842.png

 

negi007_1-1619622258677.png

 

let me know if it works for you.




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Thanks for that. It does work on some of my columns but not on the below measures.  Is there any way around this?  Many thanks

 

Total outbound time average =
VAR Seconds = SUMX ( 'Calls SQL', SECOND ( 'Calls SQL'[Out Time] ) + MINUTE ( 'Calls SQL'[Out Time] )*60 + HOUR ( 'Calls SQL'[Out Time] ) *3600 )
var Seconds1 = divide(Seconds,[Count of Names])
RETURN
quotient(Seconds1,3600 ) & ":" & FORMAT ( quotient(mod(Seconds1,3600 ),60), "00" ) & ":" & FORMAT ( mod(mod(Seconds1,3600 ),60), "00" )
 
 
 
Total inbound time new measure = VAR Seconds1 = SUMX ( 'Calls SQL', SECOND ( 'Calls SQL'[Total Inbound Time] ) ) VAR Minutes1 = SUMX ( 'Calls SQL', MINUTE ( 'Calls SQL'[Total Inbound Time] ) ) VAR Hours1 = SUMX ( 'Calls SQL', HOUR ( 'Calls SQL'[Total Inbound Time] ) ) VAR Seconds2 = MOD ( Seconds1, 60 ) VAR Minutes2 = MOD ( TRUNC ( Seconds1 / 60 ) + Minutes1, 60 ) VAR Hours2 = Hours1 + TRUNC ( ( TRUNC ( Seconds1 / 60 ) + Minutes1 ) / 60 ) RETURN Hours2 & ":" & FORMAT ( Minutes2, "00" ) & ":" & FORMAT ( Seconds2, "00" )
negi007
Community Champion
Community Champion

@craigmon in this case i suggest you to first create a calculate column to convert timevalues into seconds so that all values are in seconds. Then you create a measure to arrive a minute calculation. This should be able to help you.

 

Calculated column:

time(seconds) = (HOUR('Table'[Time])*60*60 + MINUTE('Table'[Time])*60)
 
Measure:
time(minutes) = SUM('Table'[time(seconds)])/60
 
now you can use the measure in our chart. let me know if it helps you. thanks



Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

amitchandak
Super User
Super User

@craigmon , As far as I know, as of know y-axis do not support time

 

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.