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 comunity.
I have duration value in sec(integer), I use DAX to convert it to time
Then I try appy time format for this column and got error
So this perfectly works untill my time value less or equall to 23:59:59.
question - how can I convert duration to time like hhh:nn:mm and apply time format as well
Solved! Go to Solution.
Hi @kvitnitskiy ,
Power BI doesn't support Duration data type for time over 24 hours.
If you need the time format, you can consider adding an extra column to save the part beyond 24h, or use the Date\Time format to convert the part beyond 24h to days
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please see this article for a better way to handle durations like this.
Calculate and Format Durations in DAX – Hoosier BI
Pat
Hi @kvitnitskiy ,
Power BI doesn't support Duration data type for time over 24 hours.
If you need the time format, you can consider adding an extra column to save the part beyond 24h, or use the Date\Time format to convert the part beyond 24h to days
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@kvitnitskiy , You can have a number like
1*time(h,m,s)
That will be a fraction of a day . you can multiply with 24 to get hours
24*60 to get minutes
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
14 | |
11 | |
8 | |
5 |
User | Count |
---|---|
26 | |
21 | |
20 | |
14 | |
10 |