Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
This is doing my head in.
I want to report seconds in a table as a hh:mm:ss duration rather than just ss.
I've been able to get this far (using the instructions here: https://efficiency365.com/2018/08/31/power-bi-seconds-to-duration/)
But I cannot get this data to appear in table in the desired format. Any suggestions gratefully accepted.
Thanks!
Solved! Go to Solution.
Hi @JonSwed ,
The result you displayed is actually correct, because your seconds column is a decimal number, which seems a little strange.As shown in the figure below, both 666 seconds and 666.14 seconds are converted into 11 minutes, and the result is correct. If you don't want to display decimals, you can use rounding to round up and then convert.
#duration(0,0,0,Number.Round([Sec2]))
You can check more details from here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @JonSwed ,
Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.
Best Regards,
Stephen Tao
Hi @JonSwed ,
The result you displayed is actually correct, because your seconds column is a decimal number, which seems a little strange.As shown in the figure below, both 666 seconds and 666.14 seconds are converted into 11 minutes, and the result is correct. If you don't want to display decimals, you can use rounding to round up and then convert.
#duration(0,0,0,Number.Round([Sec2]))
You can check more details from here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @JonSwed , you might want to truncate milliseconds from [avg_time_on_page] column by adding new column using this formula
#duration(0,0,0,Number.RoundDown([avg_time_on_page]))
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
147 | |
109 | |
107 | |
85 | |
63 |