Forum Discussion
Displaying time (hh:mm:ss) on a chart
- 5 years ago
Hello joaoga1
you can create a new measure that gives you a text format as you need it. But as I think it's not possible to add this as label text, but only as tooltip. Here how the measure could look like (not tested)
Measure = sumx('table', hour('table'[time])) + TRUNC(sumx('table', MINUTE('table'[time]))/60) & ":" & mod(sumx('table', MINUTE('table'[time])), 60) & ":00"
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
Hello joaoga1
Datetime-formats cannot be summed. You have to create a measure like this
TimeValue = sumx('Table', hour('Table'[Hours])) +(sumx('table', MINUTE('Table'[Hours]))/60) + +(sumx('table', SECOND('Table'[Hours]))/60/60)
This gives you a digital version of your datetime like 19,5 so you can put it in the gannt.
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
- joaoga15 years agoFrequent Visitor
Jimmy thanks for the answer, it really helped!
Altough, I need to visualize the amount of hours in the format of (hh:mm:ss) on the chart, is there any way I can do that?
- Jimmy8015 years ago
Community Champion
Hello joaoga1
you can create a new measure that gives you a text format as you need it. But as I think it's not possible to add this as label text, but only as tooltip. Here how the measure could look like (not tested)
Measure = sumx('table', hour('table'[time])) + TRUNC(sumx('table', MINUTE('table'[time]))/60) & ":" & mod(sumx('table', MINUTE('table'[time])), 60) & ":00"
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy- joaoga15 years agoFrequent Visitor
Thanks again Jimmy, but how do I add it as a tooltip?