Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a chart that returns the length of an employees retention on an employee by employee basis using the following statement:
if(isnull(EmployeeLeaveDate), if($(v_date_max) - EmployeeStartDate<365,1,0))
This works fine, however I need to be able to summarise this to give the overall retention of the office. I have tried summing it and counting but neither work.
In addition on my table whilst I have the sum at the top of the table it does not return any values.
Any help would be great.
James
Only thing I see off is the set analysis on StartDate... try this
Count({<EmployeeStatus -= {'Permanently Inactive'}, EmployeeStartDate = {"$(='>=' & Date(Today()-365))"}>} EmployeeCode)
Doing this doesn't work?
Sum(If(IsNull(EmployeeLeaveDate), If($(v_date_max) - EmployeeStartDate < 365, 1, 0)))
Afraid not, it comes up with blank cells.
Would you be able to share an image with two expressions
1) If(IsNull(EmployeeLeaveDate), If($(v_date_max) - EmployeeStartDate < 365, 1, 0))
2) Sum(If(IsNull(EmployeeLeaveDate), If($(v_date_max) - EmployeeStartDate < 365, 1, 0)))
Hi there,
Please see below.
The first one is where I have the full details and the working formula. In the second I have hidden some of the fields to try and get the summary working.
Do you have an expression behind this?
$(v_date_max)
or is this just a static number?
Hi, Sorry it is max(CalendarDate) which represents the maximum date selected in the current selection.
Does this number needs to be constant across all dimension you have in your chart or is this max based on the dimension?
Hi, It is constant across all dimensions yes
Or... How could I change this to using Set Analysis? I have the following so far:
count({<EmployeeStatus -= {'Permanently Inactive'}, EmployeeStartDate = {"$(='>=' today()-365">} EmployeeCode)