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
rahul_kumar
New Member

Unable to Get Median of Calculated Time Column

Hi,
I am trying to calculate the median of a time column h:mm but getting the error : "Median does not support expressions of type string/boolean/date.
I have created a calculated column called "Diff b/w notification to start time" which have time datatype and the values coming like

03:06
08:15

In excel I am easily getting the median of the above number but in power bi I am facing the mentioned issued.
Any help?

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @rahul_kumar ,

 

I think you can refer to this solved post with similar requirement like yours.

Create two calcualted columns:

tosecond = TIMEVALUE('Table'[Time to Contact]) *1
Median = FORMAT(MEDIAN('Table'[tosecond]),"hh:mm:ss")


Best Regards,
Rico Zhou

 

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

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @rahul_kumar ,

 

I think you can refer to this solved post with similar requirement like yours.

Create two calcualted columns:

tosecond = TIMEVALUE('Table'[Time to Contact]) *1
Median = FORMAT(MEDIAN('Table'[tosecond]),"hh:mm:ss")


Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

shreyamukkawar
Resolver II
Resolver II

Can you share that excel file ?

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.

Top Solution Authors