Forum Discussion

IvaStrezeva's avatar
IvaStrezeva
Frequent Visitor
6 years ago
Solved

DAX : Threshold trigger for product amount

Hello all,   I am a begginer user of Power BI and I would need help to set a treshold trigger for my data. Here are the tables: 1st Customer name, Invoice ref., Contract product and Amount 2nd Co...
  • v-frfei-msft's avatar
    v-frfei-msft
    6 years ago

    Hi IvaStrezeva ,

     

    Please create a calculated column like that to work on it.

    Column = 
    VAR ta =
        CALCULATE (
            MAX ( 'Product'[Threshold amount] ),
            FILTER ( 'Product', 'Product'[Product name] = Customer[Product Name] )
        )
    RETURN
        IF ( Customer[Amount] > ta, "Over threshold", "ok" )
    

     

    Pbix as attached.