Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
This is my DAX code as a measure to show average time of the call
AVG TIME =
VAR X = SUM('Table'[Column])
VAR Y = A + B
RETURN FORMAT (DIVIDE(X, Y), "hh:mm:ss") & " min"
My result looks like this
00:14:33
which is correct result when comparing this by going into the excel and calculating average there. I would like this to be shown as
14:33
but as soon as I adjust formating string to
"hh:mm"
my result changes and looks incorrect. Is there a way to show this value as "14:33"
Solved! Go to Solution.
pls try this
AVG TIME =
VAR X = SUM('Table'[Column])
VAR Y = A + B
VAR _tim =FORMAT (DIVIDE(X, Y), "hh:mm:ss") & " min"
RETURN
MID(_tim, SEARCH(":",_tim,1,1)+1,5)
pls try this
AVG TIME =
VAR X = SUM('Table'[Column])
VAR Y = A + B
VAR _tim =FORMAT (DIVIDE(X, Y), "hh:mm:ss") & " min"
RETURN
MID(_tim, SEARCH(":",_tim,1,1)+1,5)
User | Count |
---|---|
121 | |
69 | |
66 | |
56 | |
52 |
User | Count |
---|---|
182 | |
85 | |
67 | |
61 | |
53 |