This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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 April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 28 | |
| 28 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 65 | |
| 35 | |
| 34 | |
| 25 | |
| 24 |