The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

CHANGING THE SIGN OF THE NUMBER

dunkindonut7777
8 - Asteroid

Hi I would just like to ask if how can I change the sign using the debit/credit indicator fields. I want to know the exact formula to use so that its easy for me to transform. I want to change the sign with negative (-) if it is "C". Here is the sample data:

 

D/CAmountExpected Amount
D100100
C100-100
D5050
C50-50
1 REPLY 1
Emil_Kos
17 - Castor
17 - Castor

Hi @dunkindonut7777,

 

This is relatively simple. You need to use the formula tool and use this formula:

 

IIF([D/C]='C', [Amount]*-1, [Amount])

 

We will just multiply your value by -1 to get the expected outcome.

 

Emil_Kos_0-1632568052030.png

 

Labels
Top Solution Authors