Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Dayna
Creator II
Creator II

Calculation help, how to show the total labour cost for incidents and catagories!

Hello All,

I'm sure this will only be a little syntax problem.. I have quite a large expression that calculates how many hours have been logged for an incident or a category (this is a support desk function application). The expression is:

((if(SUM(SUN_IH_EffortTime)-(hour(sum(SUN_IH_EffortTime))&':'&minute(sum(SUN_IH_EffortTime)))<0,0,SUM(SUN_IH_EffortTime)-(hour(sum(SUN_IH_EffortTime))&':'&minute(sum(SUN_IH_EffortTime))))*24)

+

(hour(sum(SUN_IH_EffortTime)))&'.'&(num((minute(sum(SUN_IH_EffortTime))/60*100),'00')))

I also use an inputbox to allow users to enter a labour rate for each employee, this is done by:

inputsum( DISTINCT SUN_IH_LabourRate)

What I need to do now, is work out how much that incident/category (depending on what it's filtered by) costs, this would be done by multiplying the amount of hours that UserA has entered multiplied by their labour rate, add UserB hours multiplied by their labour rate, etc etc..

Each user will have a distinct labour rate, so I can't assume that they're the same - and they might change on a regular basis (hence the inputsum).

Unfortunately, the user won't be a dimension used in the table - and I have no idea how to achieve my results! My figure is completely off the mark as it looks to be summing everyone's labour rate then mutliplying it by the hours.

If anyone could help me, it would be really appreciated!!

Please find my document attached.

Kind Regards,
Dayna

2 Replies
prieper
Master II
Master II

Give it a try with an Expression like

=COLUMN(1) * inputsum( DISTINCT SUN_IH_LabourRate)

HTH
Peter

Dayna
Creator II
Creator II
Author

Hello Peter, I tried that and unfortunately it's the same problem. Kind Regards, Dayna