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
Hello. I want to make a minus sign in front of a value in a column that corresponds to a text value in another column. Shown under I want make a "-" sign in front of all the numbers in lots when buy or sell is sell?
Like this:
| Buy | 2 |
| Sell | -1 |
| Sell | -3 |
| Buy | 2 |
| Sell | -1 |
Solved! Go to Solution.
Hi @LFM ,
There are multiple ways to achieve your required output, and one of them is to write a calculate column like below:
Sign = if('Table'[Text]="Sell",'Table'[Lots]*-1,'Table'[Lots])
I attach an example pbix file.
Best regards,
Minus sign in front of a value that corresponds to... - Microsoft Fabric Community
Hi,
You can create a calculated column as below:
ColumnName=
Proud to be a Super User! | |
Hi @LFM ,
There are multiple ways to achieve your required output, and one of them is to write a calculate column like below:
Sign = if('Table'[Text]="Sell",'Table'[Lots]*-1,'Table'[Lots])
I attach an example pbix file.
Best regards,
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!