Forum Discussion

SandyBL's avatar
SandyBL
Advocate II
9 years ago
Solved

Lookup value based on value falling within range on other table

Looking to create the "Actual Rate" column in a table based on a rate card table that has the rules on which rate to use for each volume level.  So need help with the Actual Rate column.  I can do th...
  • Vvelarde's avatar
    Vvelarde
    9 years ago

    SandyBL

     

     

    ActualRate =
    CALCULATE (
        VALUES ( Rates[Rate] ),
        FILTER (
            Rates,
            Rates[Min Volume] <= Volume[Actual Volume]
                && Rates[Max Volume] >= Volume[Actual Volume]
    && Rates[Account]= Volume[Account] ) )