Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

filter a table based on measure

I have a margin created by What_if parameter.  I have three measures:  m1= [a] m2= [b] m3= ([a]+[b]) *margin/100   m3 is responding to the margin selection. Now, I want a list of names. When I...
  • jdbuchanan71's avatar
    6 years ago

    Hello Anonymous 

    Give these a try

    Positive M3 =
    SUMX ( FILTER ( VALUES ( YourTable[Names] ), [M3] > 0 ), [M3] )
    
    Negative M3 =
    SUMX ( FILTER ( VALUES ( YourTable[Names] ), [M3] < 0 ), [M3] )