on 07-22-2020 8:44 AM
Hi
I am trying to produce a summary table to show the totals against a Business Unit and Area based on the number of people who have been off sick - categorised by the length of time they have been off sick in months.
I have attached screen shots to show what the data looks like and how I want it to appear.
Can anyone help, I think I need guidance on calculation contexts!
Will
Define the following variables:
Months Open: =ToNumber(DatesBetween([Start Date Absence];CurrentDate();MonthPeriod))
Note: Type is "Dimension"
Count_0M: =Count([Months Open]; All) Where ( [Months Open] = 0) ForEach ([Business Area])
Count_1M: =Count([Months Open]; All) Where ( [Months Open] = 1) ForEach ([Business Area])
Count_Over_1M: =Count([Months Open]; All) Where ( [Months Open] >1) ForEach ([Business Area])
...
Hope this will help you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your help.
Months open is working for me now. However, when I create the variables such as Count_0M, I get an error message.. The expression or sub-expression at position 48 in the '=' function uses an invalid data type. (IES 10037)
It doesn't appear to recognise the number 0 (zero)
Any ideas?
Thanks
Will
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.