Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
I'm struggling to create a power BI visual showing outages types with their respective durations against them.
This is one aspect of the data I'm looking to use and as you can see it's in 'time' format:
I assume for it to work properly on a visual it needs to be in 'duration' data type but it's throwing an error when I try and convert it from 'time' to 'duration' data type.
Any help or tips would be appreciated.
Thanks
Durations are converted to a decimal (in days) when loaded. Best practice is to leave it as a decimal, do your measures, and then format it at the end. Please see this article for more detail and examples.
Calculate and Format Durations in DAX – Hoosier BI
Pat
@BenBallantine , Duration is a datatype in Power query and it is different from time. But DAX you do not have it. So leave it like that
for the sum of time refer
https://radacad.com/calculate-duration-in-days-hours-minutes-and-seconds-dynamically-in-power-bi-usi...
https://social.technet.microsoft.com/wiki/contents/articles/33644.powerbi-aggregating-durationtime-i...
https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?GroupId=547&MessageK...
https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389
Thank you @amitchandak for the very quick response. I'm not sure this has answered my question. The root-cause of the problem is when I try and load duration and outage title to a Power BI Visual I get a 'count of duration outage' when I need duration displayed across the bottom as 'hh:mm:ss'.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.