Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Sum Function

Guys,

When I sum worked hours of an employee for a particular month and year, I'm not getting the expected result.

Code I have used,

Hours0:

LOAD EmployeeID,

  ProjectID,

  ReleiveStatus,

  sheet_date as Sheetdate,

     worked_hours as WorkHours 

Resident ResourceTimesheet;

Fact:

load Date(floor(Sheetdate),'MM/DD/YYYY') as Timesheet,

  Year(Sheetdate) & '|' & Month(Sheetdate)& '|' & Date(Sheetdate) as Sheetdate,

  EmployeeID,

  ReleiveStatus,

  If(len(WorkHours)>0,WorkHours,0) AS WorkHour

Resident Hours0;

Plz suggest a way to achieve this.

Thanks in advance.

I have attached the sample of data along with this

4 Replies
sunny_talwar

Seems like the same query as this one?

sum of hours

micheledenardi
Specialist II
Specialist II

The xls file is corrupted. Please re-upload it.

What is your expected result ?

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
Anonymous
Not applicable
Author

I have replaced the file

Anonymous
Not applicable
Author

I have replaced the file