Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Help - I have a negative value on which I want the negative symbol to be in front

Naga
8 - Asteroid

Hi Team,

 

Please help on a formula, if there is something straight. I need the negative input (-164.15) to be displayed as (164.15-).

 

Thanks

Naga

2 REPLIES 2
Aaron_Harter
11 - Bolide

@Naga

 

You'll want to create a new string field and leverage a conditional formula:

1.PNG 

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @Naga,

 

There are many ways in which this could be done, just to add an alternative to @Aaron_Harter you could use:

 

REGEX_Replace(ToString([Value]), '^(-)?(.*)', '$2$1')

 

image.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

 

 

Labels