Using visier formula language (VFL) give me the formula for a metric to count number of…
- User
Using visier formula language (VFL) give me the formula for a metric to count number of employees at the end of each year
Assistant
Here's a VFL formula to count employees at the end of each year:
employeeCount(effectiveDate = periodEnd())This formula will:
- Use the
employeeCount()function to count active employees - Set the effective date to
periodEnd()which evaluates to the last day of the analysis period - When used with yearly time periods, it will give you the headcount as of December 31st of each year
If you need to be more explicit about the employee population or add filters, you could also use:
count(Employee, validAsOf = periodEnd())Or if you want to ensure you're only counting regular employees (excluding contingent workers, for example):
employeeCount(effectiveDate = periodEnd(), filter = isEmployee)- Use the
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.