Start Free Trial

Alteryx Designer Desktop Discussions

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

REMOVE DECIMALS

BRRLL99
11 - Bolide

I have dataset which includes decimals

 

DATANUMBERSEXPECTED-OUTPUT
A24.00024
B24.00024
C23.15023.15
D0.0070.007

 

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

@BRRLL99 what data type is your NUMBERS field? I can only replicate this in Alteryx by making it a string field. Double automatically removes the unnecessary decimals:

 

DataNath_0-1660636400006.pngDataNath_1-1660636409971.png

binu_acs
21 - Polaris

@BRRLL99 If the number data types are in string then converting it into double will remove the decimals

 

binuacs_0-1660637258149.png

 

Or if you are looking for a specific function then TrimRight() function will do the trick

 

TrimRight([NUMBERS],'0.')

 

binuacs_0-1660637412388.png

 

Labels
Top Solution Authors