Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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?
Solved! Go to Solution.
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]) *1Median = 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.
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]) *1Median = 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.
Can you share that excel file ?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 29 | |
| 21 | |
| 12 | |
| 12 |