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
aignn
Helper II
Helper II

How to get the average time per month on the chart?

Hello!

 

I get data from mysql

ticket - number of ticket

mydate - month and year

response_time - time in seconds (i can get this in minutes)

 

I want see average time by month on the chart.

I create a graph. Add values for the month and the value of response_time. It is considered automatically, but in an ugly format =(

is it Possible to get a beautiful format on the chart? For Example 00:38:00

 

Thank You

 

1 REPLY 1
v-lid-msft
Community Support
Community Support

Hi @aignn ,


Sorry for that, Based on my test, the value of this chart cannot be text or time format, we can create a measure and use in the table visual:

 

 

AVG =
VAR a =
    AVERAGE ( 'Table'[response_time] )
VAR hh =
    INT ( a / 3600 )
VAR mm =
    INT ( ( a - hh * 3600 ) / 60 )
VAR ss =
    INT ( a - mm * 60 - hh * 3600 )
RETURN
    TIMEVALUE ( hh & ":" & mm & ":" & ss )

 

 

8.PNG

 

We also not found other effective solution to achieve your requirement, perhaps you can submit the requirement to ideas and add your comments there to make this feature coming sooner : https://ideas.powerbi.com/forums/265200-power-bi-ideas


BTW, pbix as attached.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.