Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

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
Top Solution Authors