Hi,
I have a dataset with employee details (start date, end date, salary, beneftis, ...) and need to calculate the costs per month.
These are the tables (simplified, I have about a dozen tables linked to each other):
* data: list of employees and their costs, start date and end date
* date_list: disconnected table of the periods I need to display
* index: connected to the date_list table by year
I've got the following formulas:
Meal Vouchers Cost:=
Calculate( [Meal Vouchers];
FILTER(DATA;
COUNTROWS( FILTER( VALUES(DATE_LIST[Dates]);
DATA[change date adj] <= DATE_LIST[Dates] &&
DATA[exit date adj] >= DATE_LIST[Dates] ))
> 0 )
)
(sorry, I've written it nicer, but can't seem to make is look better readable in the post)
and that works perfectly!
But I would need to multiply the above formula with (1+index)
Anyone an idea how I can make that work?
Thanks!
I have a dataset with employee details (start date, end date, salary, beneftis, ...) and need to calculate the costs per month.
These are the tables (simplified, I have about a dozen tables linked to each other):
* data: list of employees and their costs, start date and end date
* date_list: disconnected table of the periods I need to display
* index: connected to the date_list table by year
I've got the following formulas:
Meal Vouchers Cost:=
Calculate( [Meal Vouchers];
FILTER(DATA;
COUNTROWS( FILTER( VALUES(DATE_LIST[Dates]);
DATA[change date adj] <= DATE_LIST[Dates] &&
DATA[exit date adj] >= DATE_LIST[Dates] ))
> 0 )
)
(sorry, I've written it nicer, but can't seem to make is look better readable in the post)
and that works perfectly!
But I would need to multiply the above formula with (1+index)
Anyone an idea how I can make that work?
Thanks!
Last edited: