Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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..
| Data | Wrong | |
| IN-Out | TP_$ | TP Trade |
| IN | 256 | -50 |
| Out | 522 | -50 |
| Trade | 50 | -50 |
| Data | Correct | |
| IN-Out | TP_$ | TP Trade |
| IN | 256 | 0 |
| Out | 522 | 0 |
| Trade | 50 | -50 |
Thanks in advance.
Solved! Go to Solution.
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |