Qlik Community

Ask a Question

New to QlikView

If you’re new to QlikView, start with this Discussion Board and get up-to-speed quickly.

Announcements
Welcome to our newly redesigned Qlik Community! Read our blog to learn about all the new updates: READ BLOG and REPORTED ISSUES
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
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

Thank's

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

Master III
Master III

If your queries are resolved, please close the thread