ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

2 digit record ID

jackdaniels
Asteroide

The record ID tool can only be configured to start at 1, but I need it to start at 01 (or even 001). 

 

How else can this be achieved?

 

 

5 RESPUESTAS 5
LordNeilLord
Aurora

Hey @jackdaniels

 

You can use the PadLeft function in formula tool to add leading zeros:

 

PadLeft(ToString([RecordID]), 2, "0")

@LordNeilLord

Part time Tableau, Part Time Alteryx. Full Time Awesome


Data Lover

jackdaniels
Asteroide

Thanks @LordNeilLord !

BenMoss
ACE Emeritus
ACE Emeritus

It can actually be performed easier than this!

 

In the 'RecordID' tool, set your option-type to be 'string' and the size to 2.

Alteryx will automatically pad the numbers to the length specified.

 

Ben

jackdaniels
Asteroide

Thanks Ben. This is a simpler approach.

LordNeilLord
Aurora

@BenMoss

 

This is true, however....if you set it to 2 then once you hit 99 alteryx will start to truncate the field.

 

So you could set the length to 8 or 10 or 12 but you can't do this dynamically...so it seems like a pointless feature

Etiquetas
Autores con mayor cantidad de soluciones