Forum Discussion
Number at a particular date
Hi Mariusz
Thanks for that. I do have some employees in this database with a null start date you are correct - these will be roles as yet not recruited for (i.e. we have a role outstanding but nobody yet confirmed for them and as such they have an undefined start date). Is there a way of altering that function to account for these people who have this undefined start date?
The easiest way would be to filter out these people ( start date <> null ) in a step before you invoke the function, as they have not had any working days there is no need for them to be in this table.
Please see the adjusted file on the attached.
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
- tobiasmcbride6 years ago
Helper III
Hi Mariusz ,
Looking at data again these are budgeted leavers (i.e. those we budget to leave this coming FY) this is what we have in the database with no start date but a particulary end date given our attrition modelling. What would you suggest to do as would actually like to keep these budgeted leavers in there but work out a way to tweak the formula to take account of null dates?
- tobiasmcbride6 years ago
Helper III
At present the database assumes a non-existent one and not sure what we can do about that. Are there any tweaks we could make to ensure they still appear but to remove the null? Not sure what date we could use as a replacement here though instead of just having null?
- tobiasmcbride6 years ago
Helper III
Apologies Mariusz forgot to tag you in reply above
- Mariusz6 years ago
Community Champion
In the attached file, I've added myself as an extra record, as you can see I'm still aspiring in the slicer however you will not be able to see me in the headcount by date because it would not make a logical sense.
If you need to count this individual separately, you can create another measure like below.
Headcount no start date = CALCULATE( COUNTROWS( employee ), ISBLANK( employee[Start Date] ) )Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn - Mariusz6 years ago
Community Champion
Another way would be selecting a date point in the future by replacing start date nulls with let's say today + 30 and allocating this individual there.
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn - tobiasmcbride6 years ago
Helper III
Thanks Mariusz managed to get it working eventually looking backwards from now.
I have budget headcount data too like so:
Budget Date Headcount Value
Latest Plan 31 October 2017 1101
Latest Plan 30 November 2017 1106
I want to display the chart with headcount data for the actuals and the budget line for 'latest plan'. However it seems to when displaying on the chart take the sum of all of these values for a particular time period so I get tens of thousands for the budgeted headcount and that remains fairly constant over time whilst the actual headcount data flucuates as you modelled.
I think it has to do with the fact that the budget 'date' is only the end of the month or something but wondered if you could assist?
- tobiasmcbride6 years ago
Helper III
Hi Mariusz
trying to get this to work looking forward in time and seems to only be working from today backwards. We have some confirmed starters in the data that we can look forward and, hence, compare with budget. still trying to work out how to deal with the data quality matter around null start dates to get most accurate position so if any further ideas on this would be great.