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
Anonymous
Not applicable

Showing Line Chart (Date Vs TIme in hh:mm format)

Hi Community,

we want to show the avg. in time w.r.t date having a filter to a category. 
I tried to convert the time format to Minutes or seconds but when doing average, values are coming wrong
like 10.68, etc.,
I did some search in the community as well no of the solutions are meeting my requirement.
Attached the sample data for reference.
 
I need very urgent help on this on a solution or any alternatives.
 
Thanks in advance
 
 
1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @Anonymous 

You may use below dax to get the average.

Intime_cal = DIVIDE(HOUR('Sample Data'[InTime])*60*60+MINUTE('Sample Data'[InTime])*60+SECOND('Sample Data'[InTime]),24*60*60)
Measure = TIME(0,0,0)+ AVERAGE('Sample Data'[Intime_cal])

Regards,

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

View solution in original post

4 REPLIES 4
v-cherch-msft
Employee
Employee

Hi @Anonymous 

You may use below dax to get the average.

Intime_cal = DIVIDE(HOUR('Sample Data'[InTime])*60*60+MINUTE('Sample Data'[InTime])*60+SECOND('Sample Data'[InTime]),24*60*60)
Measure = TIME(0,0,0)+ AVERAGE('Sample Data'[Intime_cal])

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks For your reply,

 

My requirement is to represent  the average time in line chart  and measure calculated in the data is in time format so we cant do

 

Any Suggestion on this.

 

Thanks

Yamuna

Hi @Anonymous 

It's impossible to use Time format for y-axis.As Y-axis supports only numeric values currently.I would suggest you use tooltips to show their time format.

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks v-cherch-msft 

 

I did the same 

 

Thanks

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.