Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
19 | |
17 | |
11 | |
9 | |
9 |