Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Need help to make formula work (filter)

Hi,   Im not sure what i'm droing wrong, hope that someone is able to help me fix it. What i'm trying to do is to return a value that is between a range eg. Store[Amount]=4500 the return value sho...
  • MFelix's avatar
    6 years ago

    Hi Anonymous ,

     

    Try the followin code:

    Comission =
    CALCULATE (
        MINX (
            FILTER (
                Bank;
                Bank[Interval] <= FORMAT ( Store[Amount]; "#" )
                    && Bank[Interval] >= FORMAT ( Store[Amount]; "#" )
            );
            Bank[Comission]
        )
    )

    Be aware that since you don't have values above 10.000 on the comissions will return blank, you can add a level with 9999999999 and a 0 value or another one that you think is correct.