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
I have a Table named "ICS_Transaction" in my SQL Database.
There is a column named "Net_Amt_LC" that shows the net amount of the transaction.
There is another column named "Voucher_Type" that shows a value 2021 for Credit Sales Transactions and 2023 for Credit Sales Returns.
The values in Net_Amt_LC are all positives. And I want to bring Net_Amt_LC values as negatives for all those transactions that has Voucher_Type = 2023.
Please help!
Solved! Go to Solution.
In Power Query, make a column:
NALCneg = [Net_Amt_LC]*-1
Then make another column:
NewNALC = if [Voucher_Type] = 2021 then [Net_Amt_LC] else [NALCneg]
In Power Query, make a column:
NALCneg = [Net_Amt_LC]*-1
Then make another column:
NewNALC = if [Voucher_Type] = 2021 then [Net_Amt_LC] else [NALCneg]
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |