Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Why does powerbi show minutes instead of hours?


Asked by Riley Dunn on Dec 09, 2021 FAQ



It displays correct value if you want to round you avg to hours but if you want to show minutes it shows 66.75 instead of your 66:45 because I cannot change the datatype of measure to time. Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.
In fact,
If you convert your duration hour to a decimal number it is possible to show the sum. Then the value 1 = 1 day = 24 hour = 1440 minutes = 86400 seconds. So a value of 0.5 means 12 hours. It is a bit of a hassle to display it as hours and minutes in a chart, but this from the Power BI forums shows how its done.
Next, Using the relative time slicer or relative time filter, you can apply time-based filters to any date or time column in your data model. For example, you can use the relative time slicer to show only video views within the last minute or hour. You don't have to use the feature in conjunction with the automatic page refresh feature.
And,
The time need to be converted to the nearest round minute or second so that every time in your data corresponds to a row in your time table. It's worth keeping but hiding the original DateTime field in your data in case you later want to calculate durations that span days.
Furthermore,
Power BI: DAX: Date and Time Functions The Date and Time Functions in Data Analysis Expressions (DAX) are similar to date and time functions in Microsoft Excel. However, DAX functions are based on the datetime data types used by Microsoft SQL Server.