Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to convert duration format to decimal format so that calculation result makes sense?

I want to multiply the monthly hours and the cost per hour below to get the total monthly cost.

The current calculation result does not make sense as you can see....the total cost column does not equal (cost per hour) *(monthly hours).

The monthly hours are in a duration timestamp format. i am suspecting that might be the reason. How do I convert them into decimal format ? hopefully that would solve my calculation problem.

My expressions:

Monthly hours: Sum(ServiceDuration)*4.34

Cost per hour:  sum(SalaryAverageHourlyRateScript)

Total Cost: Sum(ServiceDuration)*4.34 * sum(SalaryAverageHourlyRateScript)

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

just multiply the formula in 24

Sum(ServiceDuration)*4.34 * sum(SalaryAverageHourlyRateScript)*24

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

just multiply the formula in 24

Sum(ServiceDuration)*4.34 * sum(SalaryAverageHourlyRateScript)*24

Anonymous
Not applicable
Author

Thanks Liron! Feeling pretty stupid right now .