Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi all,
I have this column which shows the duration which a ticket was open for, in the format - HH:MM:SS
PBI sees this as a text field, i'm assuming because of the format.
In my visuals, I want to be able to show averages - however can't (I guess because it's a text field?)
How can I achieve this? Thank you!
Solved! Go to Solution.
Hi @PeteS
You can try the following solution
1.Add a column
Column = HOUR([Column1])*3600+MINUTE([Column1])*60+SECOND([Column1])
2.Create the following measures
Measure = AVERAGE('Table'[Column])Average = var a = ROUNDDOWN([Measure]/3600,0)
var b=ROUNDDOWN(DIVIDE([Measure]-3600*a,60),0)
var c=[Measure]-3600*a-60*b
return FORMAT(TIME(A,B,C),"hh:mm:ss")
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @PeteS
You can try the following solution
1.Add a column
Column = HOUR([Column1])*3600+MINUTE([Column1])*60+SECOND([Column1])
2.Create the following measures
Measure = AVERAGE('Table'[Column])Average = var a = ROUNDDOWN([Measure]/3600,0)
var b=ROUNDDOWN(DIVIDE([Measure]-3600*a,60),0)
var c=[Measure]-3600*a-60*b
return FORMAT(TIME(A,B,C),"hh:mm:ss")
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |