Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register 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
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
17 | |
13 | |
12 | |
10 | |
9 |