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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.