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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

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

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.

 

Anonymous
Not applicable

Can you share that excel file ?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.