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

Extraer ultimo digito de una cadena

FernandoR
8 - Asteroid
 

Hola comuunidad buen dia, ayuda por favor, tengo una columna que se llama importe, lo que tengo que hacer es que algunos importes terminan con el signo -

Lo que necesito es pasar unicamente ese signo solo de los importes que lo contienen al principio.

Por ejemplo si tuviera 4567.67- tendría que quedarme -4567.67. Solo necesitaría pasar ese signo de - al principio de cada importe pero unicamente en los importes que lo tengan al final 

Intente con la formula de Right(importe],0) pero no funciono., tampoco con reverse(importe) ya que me voltea todo el importe y solo necesito pasar ese signo al principio en los casos que lo contengan sin que el importe se vea afectado.

Alguien tendra otra idea?

 

Muchas gracias

 

 

2 REPLIES 2
Raj
16 - Nebula

@FernandoR 
it would be great if it was posted in english.

Hello community, good morning, please help. I have a column called "importe" (amount), and what I need to do is move the minus sign (-) from the end of some amounts to the beginning.

For example, if I have 4567.67-, I need to end up with -4567.67. I only need to move the minus sign to the beginning for amounts that have it at the end.

I tried with the formula Right([importe],0) but it didn’t work, and Reverse([importe]) didn't work either because it reverses the entire amount, and I only need to move the minus sign without affecting the amount.

Does anyone have another idea?

Thank you so much!

Raj
16 - Nebula

@FernandoR 
find the workflow attached
mark done if solved.

Labels
Top Solution Authors