Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Time conversion from minute to hour

$
0
0
Hello CDE-Users,

have you ever had a problem with time format for values from MDX Cube? My values are in minutes - e.g. 85,32 which means 01:25. I got something(1:25 without leading zero) in bar chart in extension point:

function(scene) { return Math.floor((scene.vars.value.label)/60) + " : " + ((scene.vars.value.label)-((Math.floor((scene.vars.value.label)/60))*60)).toFixed(0);}

Question to You: is it correct to do formating in extension point or should I have somewhere js?
My second problem is that in table component I do not have extension point so I do not know how to format it in this element. Can you help me?

Thanks a lot for your help and understanding that I'm not "javascript" person.

Best regards,
timfu83

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>