Forum Discussion

TomaszTub's avatar
TomaszTub
Regular Visitor
5 years ago
Solved

bonus - proper range search

Hi,   Can someone help find proper solution?   I have two tabeles . First with turnovers and second with scale I woluld like to find realted range to calculate proper percentage value.   turno...
  • Ashish_Mathur's avatar
    5 years ago

    Hi,

    In Table2, write these calculated column formulas

    Bonus % = CALCULATE(MIN(Table1[%]),FILTER(Table1,Table1[turnover value start]<=EARLIER(Table2[turnover])&&Table1[turnover value end]>=EARLIER(Table2[turnover])))
    Bonus = Table2[Bonus %]*Table2[turnover]

    Hope this helps.