Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |