March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I have a meassure which is SUM(Table1[Field1]) + SUM(Table2[Field2]) Returns a single number like 7685
I need to convert 7685 to HH:MM:SS, how do I do that?
Thanks in advance.
Solved! Go to Solution.
Hi @sabeensp
You may try below measure.
Measure = TIME ( 0, 0, 0 ) + DIVIDE ( SUM ( TABLE1[Column1] ) + SUM ( TABLE2[Column2] ), ( 24 * 60 * 60 ) )
Regards,
Hi @sabeensp
You may create a measure like below and format it.
Measure = TIME(0,0,SUM(Table1[field1])+SUM(Table1[field2]))
Regards,
@v-cherch-msft I tried
Error Message:
MdxScript(Model) (15, 45) Calculation error in measure [Production Time]:
An argument of function 'TIME' has the wrong data type or the result is too large or too
small.
Hi @sabeensp
You may try below measure.
Measure = TIME ( 0, 0, 0 ) + DIVIDE ( SUM ( TABLE1[Column1] ) + SUM ( TABLE2[Column2] ), ( 24 * 60 * 60 ) )
Regards,
It worked almost perfectly for me, except that... 🙂
I'm working with call durations in a call center, so it's basically only mm:ss. If I format hh:mm:ss, it shows 00:02:48, but if I format as mm:ss, it shows 12:48 (?!)... I'm guessing that when it is hh:mm:ss, it understand m is for minutes, but if it's formatted mm:ss, it understands m as for month... But I don't know how to solve it... Help! 🙂
Does 7685 represent seconds?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |