Start Free Trial

Alteryx Designer Desktop Discussions

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

Only numbers in field name

BautistaC888
8 - Asteroid

Hello,
I need an expression that leave only the numbers in the fields names.
Thank you.

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

Hey @BautistaC888, you can use the Dynamic Rename tool for this. The expression here replaces any non-digit (\D) with nothing.

 

DataNath_0-1677521647434.png

mceleavey
17 - Castor
17 - Castor

Hi @BautistaC888 ,

 

Another way is to pivot the names into a column and use regex to parse the digits, then pivot back:

 

mceleavey_0-1677521756764.png

mceleavey_1-1677521767798.png

 

Hope this helps,

 

M.



Bulien

Labels
Top Solution Authors