Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Assign working days to months

I have a pivot table in which I have months(dimension) attributed to each work cycle. My months already change dynamically by selecting a work cycle from the multi-box. Is there any way I can assign the working days values to each month, in an expression, without using about 12 nested ifs?

1 Solution

Accepted Solutions
marcus_sommer

I suggest to do this assigning within the script in a master-calendar with something:

if(weekday(Date) < 5, 1, 0) as WorkingDay

and this new field could be easily queried with somehing like: sum(WorkingDay)

Also possible are calculations with networkingdays() within the UI.

- Marcus

View solution in original post

2 Replies
marcus_sommer

I suggest to do this assigning within the script in a master-calendar with something:

if(weekday(Date) < 5, 1, 0) as WorkingDay

and this new field could be easily queried with somehing like: sum(WorkingDay)

Also possible are calculations with networkingdays() within the UI.

- Marcus

Anonymous
Not applicable
Author

Thanks for the idea