on 07-11-2019 3:54 PM
Hi
I have stablished a connection to SSFF employee central via Odata (in order to get all the historical data)
Each employee has an Star_Date and End_Date for his position. I need to get the number of employees working at any selected range of dates (Start_Range_Date_Filter; End_Range_Date_Filter), so i would need to count employees filtering by their Start_Date<="End_Range_Date_Filter" and End_Date>="Start_Range_Date_Filter", and it is required that the date range filter is dynamic.
I have tried with the calculated measures/aggregation/count, but i cannot set conditions such as ">=", i have also tried defining the formula in the model, but count() function seems not to be allowed when "coding" the formula.
Thank you for your help
Hello Francisco,
right now the filter that you define are tied to a dimension, so the best option in your case would be to try to resolve this already in the actual data source and then have for example a prompt that would be used in SAP Analytics Cloud as "key date"
Regards
Ingo Hilgefort
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Afshin,
You would use a single date as input (key date) and filter all employees where the start date is <= your key date and >= their end date.
Regards
ingo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ingo,
Firstly, sorry to hijack the post.
This is a key requirement in HCM reporting where you have employees with a begin and end date
and you want to find the number of people as at for example a key date i.e. today that fall between their begin and end date.
An example to demonstrate that would be great.
Thanks
Afshin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Francisco,
Start and End Date are in the same model ?
If so - is the problem the filtering or the calculations that you would like to create ?
thanks
Ingo Hilgefort, SAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.