Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 39 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |