Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
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,
User | Count |
---|---|
77 | |
70 | |
68 | |
53 | |
48 |
User | Count |
---|---|
45 | |
38 | |
35 | |
31 | |
28 |