Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Obtain an amount from a third table with calculations between two ranges.

I have the following problem, I've been at it for the past 8 hoyrs and I can't see clearly anymore.   I have three tables as follows:   SALES MASTER: INVOICE STORE SELLER AMOUNT 154 MA...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

     

    According to this: I need to calculate the bonus for each seller according to a quota established by state

    Please simply try to create a measure:

    Measure = CALCULATE(MAX('BONUS MASTER'[BONUS]),FILTER('BONUS MASTER',[MINAMT]<=[AMTPERSALESMAN] && [MAXAMT]>=[AMTPERSALESMAN]&& [STATE]=MAX('STORE MASTER'[STATE])))

     Output:

     

    Best Regards,
    Eyelyn Qin
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.