Forum Discussion

VHosamane's avatar
VHosamane
Frequent Visitor
7 years ago
Solved

Calculation from a lookup table with default

I have two tables, an aggregated table(AggrTbl) and another table (Lkup) is a lookup table. They are separate now but can be joined by Staff Name. I need help in calculating the Cost.     In...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Try something like this:

    Cost =

    VAR varLookup =
        LOOKUPVALUE (

             Lkup[Rate];
             Lkup[StaffName]; AggrTbl[StaffName]

        )

    RETURN
    IF (
        varLookup <> BLANK();
        varLookup;
        50

    )

     

    Regards