Forum Discussion

kanth123's avatar
kanth123
Helper I
4 years ago
Solved

Filter data based on Sales Price

Hi,  Created a calculated Measure "Flag"  based on below logic . User can choose either Include or Exlcude.  Unit Price  =  Sum(Amount)/Sum(Units)  Flag = if [Unit Price] > 25,"Include","Exlcude" ...
  • Seanan's avatar
    Seanan
    4 years ago

    Hi kanth123 

    Please try using this measure for the flag

    Flag = CALCULATE(SUM('Units'[Amount]),FILTER(Units,'Units'[UnitPrice] > 25))

    Kind regards,
    Seanan
    If this post helped, please consider accepting it as the solution.