Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
capriconuser
Creator
Creator

numbers of hours per week

I have this kind of data 

 

script :

LOAD Id, 
OwnerName, 
Date(AttendanceDay,'DD/MM/YYYY') as AttendanceDay, 
Month(AttendanceDay) as AttendanceMonth,
Year(AttendanceDay) as AttendanceYear,
Week(AttendanceDay) as Week,

Working_hours 

FROM
ar_sheet.xlsx
(ooxml, embedded labels, table is report);

 

i want to extract numbers of hours per week , per month and per year ..

 how i do this 

 

AttendanceDayWorkingHours
11/19/201909:00
11/19/201909:00
11/19/201909:00
11/19/20190:00
11/18/20198:14
11/18/20196:53
11/18/20190:00
11/18/201910:42
11/18/20199:29
11/18/201909:00
11/18/201909:00
11/18/20198:33
11/18/20199:33
11/17/20198:16
11/17/201910:52
11/17/201910:18
11/17/201910:56
11/17/20198:31
11/17/201910:40
11/14/20190:00
11/14/201910:00
11/14/20198:53
11/14/20198:53
11/14/20199:21
11/14/20199:02
11/14/20199:27
11/14/20197:29
11/14/20198:31
11/14/20198:40
11/14/20199:53
11/14/20198:37
11/14/20198:43
11/14/20199:09
11/14/20199:11
11/14/20199:21
11/14/20198:54
11/14/201910:01
11/14/20198:43
11/14/20190:00
11/14/20199:11
11/14/20198:55
11/14/20199:09
11/14/20198:52
11/14/20198:00
11/14/20198:52
11/14/20198:40
11/14/20199:26
11/14/20199:04
11/14/20190:00
11/14/20199:13
11/14/20196:03
11/14/20198:32
11/14/20198:09
11/14/20198:46
11/14/201910:00
11/14/20194:18
11/13/20190:00
11/11/20199:29
11/12/20198:37
11/13/20198:57
11/12/20198:51
11/11/20198:35
11/12/20198:44
11/13/20198:29
11/12/20197:39
11/11/20198:07
11/12/20198:34
11/13/20199:08
11/11/20190:00
11/12/20199:58
11/13/20198:20
11/11/20197:53
11/13/20198:54
11/11/20199:54
11/12/20190:00
11/13/201910:44
11/12/20199:12
11/11/20199:55
11/12/20197:32
11/13/20198:57
11/11/20190:00
11/12/20198:51
11/11/20199:20
11/12/20199:44
11/13/20199:36
11/11/20190:00
11/13/20197:27
11/11/20198:19
11/12/20199:47
11/13/20198:10
11/11/201910:24
11/13/20199:27
11/11/20197:59
11/12/20190:00
11/13/20197:52
11/11/20199:07
11/12/20199:51
11/13/20197:07
11/12/20199:39
11/13/20196:12
11/11/20199:54
11/12/20198:18
11/12/20199:30
11/13/20199:33
11/11/20199:27
11/12/20199:57
11/13/20199:38
11/11/20198:12
11/12/20198:45

 

 

1 Solution

Accepted Solutions
sunny_talwar

I did... but in that image you have made a selection on week1.... if you don't want your month chart to change it's value based on selection in month... then in your expression ignore selection in week field.... 🙂

View solution in original post

19 Replies
sunny_talwar

What exactly are you hoping to get?

capriconuser
Creator
Creator
Author

i want to get total number of hours worked by week  , month and year @sunny_talwar 

sunny_talwar

Just do Sum(Working_Hours) against Week or Month dimension.... will that not work?

capriconuser
Creator
Creator
Author

but how i get each week against each month and year ? this is the problem

sunny_talwar

What do you mean? Do you not have a week or month field in your dashboard?

capriconuser
Creator
Creator
Author

i have only date field.. and from that i want to extract moth, year and week field @sunny_talwar 

sunny_talwar

Create a master calendar in the script using your date field and you should be good.

Creating A Master Calendar 

capriconuser
Creator
Creator
Author

i already created master calendar.. 

this is what i get

 

if there is 4 weeks in month then this should be 1,2,3 and 4 for 1 month and if 2nd month start then again 1,2,3,4 must be wirtten .. but here 1,2,3,4,5,6,7 no stop counting is what i get.. and i want to get like this 

 

1,2,3,4 then again 1,2,3,4 Untitled.png

sunny_talwar

Try something like this?

Month Week ( 1 to 4 or 5 weeks)