Forum Discussion
About Time Calculation
- Anonymous4 years ago
Hi Anonymous ,
Currently, we couldn't add measure with Time or Text format data into value field in some charts like bar chart, line chart and so on. If your data is duration format in Power Query Editor, and data format in report value is Time, you can try sum or sumx to sum your time.
Measure = SUMX('Table',[Column1])Here I suggest you to convert your Time format data to number format like hour, minute or second. Then you can succeed to use it in value field in bar charts.
In my sample, I convert time to minute.
MINUTE = VAR _HOUR = SUMX('Table',HOUR('Table'[Column1]))*60 VAR _MINUTE = SUMX('Table',MINUTE('Table'[Column1])) RETURN _HOUR+_MINUTEResult is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Samarth_18 I sent the pbix file with a private message. Thank you.
Hi Anonymous ,
Currently, we couldn't add measure with Time or Text format data into value field in some charts like bar chart, line chart and so on. If your data is duration format in Power Query Editor, and data format in report value is Time, you can try sum or sumx to sum your time.
Measure = SUMX('Table',[Column1])
Here I suggest you to convert your Time format data to number format like hour, minute or second. Then you can succeed to use it in value field in bar charts.
In my sample, I convert time to minute.
MINUTE =
VAR _HOUR = SUMX('Table',HOUR('Table'[Column1]))*60
VAR _MINUTE = SUMX('Table',MINUTE('Table'[Column1]))
RETURN
_HOUR+_MINUTE
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.