Hi, I'm new to PP/DAX so I'm hoping someone can help me here. I'm working with customer data so I'll have to be a bit vague on the details but the general idea is this:
There's an 'hours' table that has a line for each date an employee has worked, with ao columns for [EmpoyeeID], [Date], [Hours].
There's an 'employee' table with multiple rows per employee with [Rate], [Startdate], [Enddate]. This table is created manually so we can change this if needed.
Now users should be able to create their own pivot tables without having to deal with finding the correct rate, so I want to add a column [Rate] to the 'hours' table that holds the correct rate for the employee/date as specified in the 'employee' table.
Since both tables don't have unique values there's no relation possible. Note that this is not about finding the 'current' rate, but the rate on any given date in the 'hours' table.
I tried using Lookupvalue, but that didn't work. I assume that's because of this restriction on searchvalue: "A scalar expression that does not refer to any column in the same table being searched."
Any ideas on how to do this?
thanks
BTW there's also a 'calendar' table but it's not been used so far.
There's an 'hours' table that has a line for each date an employee has worked, with ao columns for [EmpoyeeID], [Date], [Hours].
There's an 'employee' table with multiple rows per employee with [Rate], [Startdate], [Enddate]. This table is created manually so we can change this if needed.
Now users should be able to create their own pivot tables without having to deal with finding the correct rate, so I want to add a column [Rate] to the 'hours' table that holds the correct rate for the employee/date as specified in the 'employee' table.
Since both tables don't have unique values there's no relation possible. Note that this is not about finding the 'current' rate, but the rate on any given date in the 'hours' table.
I tried using Lookupvalue, but that didn't work. I assume that's because of this restriction on searchvalue: "A scalar expression that does not refer to any column in the same table being searched."
Any ideas on how to do this?
thanks
BTW there's also a 'calendar' table but it's not been used so far.