Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Varshi288
Resolver II
Resolver II

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.

1 ACCEPTED SOLUTION

Thank You  Pankaj

View solution in original post

2 REPLIES 2
pankajnamekar25
Super User
Super User

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.

Thank You  Pankaj

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.