Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Why Calculate Total OT Hour * OTRate in Qlikview

Dear All,

I want to how i calculate total OT hour multiplication OTRate = Total OT Amount in Qlikview.

4 Replies
anbu1984
Master III
Master III

LOAD dtAttendDateTime,

     StrFactoryShortName,

     StrDepartmentName,

     CategoryName,

     StrEmpName,

     StrDesignationName,

     InTime,

     OutTime,

     GrossSalary,

     OTRate,

     onDuty,

     OT,

     Time(OT)*24 * OTRate

FROM

[Overtime Calculation.xls]

(biff, embedded labels, table is Sheet1$);

Not applicable
Author

Thank's

djsampat
Creator II
Creator II

Hi,

Try this

Data:

LOAD *,

  interval(if(Check, rangemax(0,Time-3/8),0)) as OverTime,

  interval(rangemin(3/8,Time)) as RegularTime;

LOAD *, interval(frac(OutTime) - frac(InTime)) as Time;

LOAD

*

FROM

[OvertimeCalc.xlsx]

(ooxml, embedded labels, table is TB01);

If this helped you, please mark as Helpful. If it solves your issue, please mark as Answer

Regards

Dhruv

anbu1984
Master III
Master III

If your queries are resolved, please close the thread