Forum Discussion

Carlaf's avatar
Carlaf
Frequent Visitor
4 years ago

Customer's analysis

Good morning,

 

i've got a list of seller's and customer's.

I would like to define the range of a customer's for seller's.

 

TABLE RANGE:               RANGE           RANGE_VALUE

                                     A                     50000-70000

                                     B                     30000-49999

                                      ...

 

SALES:

SELLER    CUSTOMER'S   SALES        RANGE         RANGE_VALUE

Tom           Jerry                60000         A                50000 - 70000

Tom           Mary                100             F                0 - 200

 

 

Thanks

1 Reply

  • Carlaf , Not very clear .

     

    New column in sales

     

    maxx(filter(Range, sales[sales]>= Range[Start Range] && sales[sales]<= Range[End Range] ), Range[Range_value])

     

    or

     

    maxx(filter(Range, sales[sales]>= Range[Start Range] && sales[sales]<= Range[End Range] ), Range[Range])