Forum Discussion

Varshi288's avatar
Varshi288
Icon for Resolver II rankResolver II
1 year ago
Solved

Measure value spill over

Hi All,  I am converting Trade value into negative. but this value is applying for all others as well. how get the result like in second table..

 

TP Trade = CALCULATE([TP_$],(Data[In - out]="Trade"))*-1

 

Data 

Wrong

IN-OutTP_$TP Trade
IN256-50
Out522-50
Trade50-50
   
Data Correct
IN-OutTP_$TP Trade
IN2560
Out5220
Trade50-50

 

Thanks in advance.

2 Replies

  • Hello Varshi288 

     

    Try this measure

    TP Trade =

    IF (

        SELECTEDVALUE(Data[In - out]) = "Trade",

        [TP_$] * -1,

        0

    )

    Thanks,
     Pankaj Namekar | LinkedIn

    If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

    • Varshi288's avatar
      Varshi288
      Icon for Resolver II rankResolver II

      Thank You  Pankaj