Forum Discussion

hidzirf's avatar
hidzirf
Icon for Helper I rankHelper I
4 years ago

Duration value in line chart

Dear Expert,

 

I need help.

 

I have a Duration value in seconds. To be able to have in Days, hours and minutes format i have created a new column with below calculation

 

var vSeconds=[Duration]
var vMinutes=int( vSeconds/60)
var vRemainingSeconds=MOD(vSeconds, 60)
var vHours=INT(vMinutes/60)
var vRemainingMinutes=MOD(vMinutes,60)
var vDays=INT(vHours/24)
var vRemainingHours=MOD(vHours,24)
return
vDays&" Days "&
vRemainingHours&" Hours "&
vRemainingMinutes&" Minutes "&
vRemainingSeconds& " Seconds"
 

 

But now I want to shows the newDuration in Line chart but i cant do so as the Data Type is Text and it will only count the rows if i put it in the Value. i would like to be able to shows the line chart as below:
 

 

Please help how can i achive this. Thank you.

 

2 Replies