Forum Discussion

antonio_wurth's avatar
2 years ago
Solved

add column from not direct linked table

hello  help please i have 2 tables there is no relation between them but i need to add column based on value from table   in file example with more detailed requirements explanation https://1d...
  • antonio_wurth's avatar
    antonio_wurth
    2 years ago

    looks i received expected result

    work_hours =
    var p_employee_id = VALUES(dim_clients[main_sales_manger_id])

    return
    sumx(
        FILTER(fact_employees_days_off,
        fact_employees_days_off[employee_id] IN p_employee_id), fact_employees_days_off[day_off])