Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Required Debit credit column while looking positve and negative amounts

Maheshp
8 - Asteroid

Hi Team,

 

I have a number in Alteryx like below.

 

DescriptionNumbersBPCAmount
Targeted Drug Delivery C9783527347810BC.538706.0161.74
Targeted Protein Degradation C9783527350131BC.556738.01-1502.31

 

But through formula i want to separate Debit and credit column while looking positive and negative sign of amount like below.

 

DescriptionNumbersBPCAmountDebitCredit
Targeted Drug Delivery C9783527347810BC.538706.0161.7461.74 
Targeted Protein Degradation C9783527350131BC.556738.01-1502.31 1502.31

 

Regards,

 

Mahesh

 

 

 

 

 

2 REPLIES 2
Deano478
12 - Quasar

Hey @Maheshp would something like this be of any help to you?

 

Deano478_0-1678969080589.png

 

BRRLL99
11 - Bolide

In the formula tool, add the following columns:

  • "Debit": IF [Amount] > 0 THEN [Amount] ELSE 0 ENDIF
  • "Credit": IF [Amount] < 0 THEN ABS([Amount]) ELSE 0 ENDIF
Labels
Top Solution Authors