Free Trial

Alteryx Designer Desktop Discussions

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

Number formating

NiranjanK1
8 - Asteroid

Hello All,

 

I would like to update additional decimal for value inside the string how can I implement below logic.

 

Mismath(FORMATNUMBER(value,'###0.000000'))

How to implement same.

 

Regards,

Niranjan 

12 REPLIES 12
ShankerV
17 - Castor

Hi @NiranjanK1 

 

One way of doing this.

 

ShankerV_0-1681988686180.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @NiranjanK1 

 

Step 1: Input

 

ShankerV_0-1681988722165.png

 

Step 2: 

ShankerV_1-1681988741971.png

 

ShankerV_2-1681988751190.png

 

 

Step 3:

 

ShankerV_3-1681988768166.png

(\d+)(.\d+)

 

ShankerV_4-1681988777681.png

 

Step 4:

 

ShankerV_5-1681988807102.png

[RegExOut1]+PadRight([RegExOut2], 7, "0")

 

ShankerV_6-1681988813653.png

 

 

Many thanks

Shanker V

 

NiranjanK1
8 - Asteroid

@ShankerV thank you for quick response.

Actually I have string and number in same field. If merge both string and number format is missing. Thank you 

ShankerV
17 - Castor

Hi @NiranjanK1 

 

Can you please share the sample input and the output expected.

Thanks in advance.

NiranjanK1
8 - Asteroid

@ShankerV Here is the example 

Input: Mismatch(FORMATNUMBER(value,'###0.000000')

Output:

Mismatch (500.032654)

 

This is how Output look

 

Regards,

Niranjan 

Raj
16 - Nebula

have you tried using "ToString(ToNumber([name of coumn containing original value]), "###0.000000")" to bring the value

 

Hope this help

NiranjanK1
8 - Asteroid

@Raj I have tried but I'm not getting expected Output 

binuacs
21 - Polaris

@NiranjanK1 would you be providing the value for the [value] field you mentioned in the below example? May be in a tabular format

 

Input: Mismatch(FORMATNUMBER(value,'###0.000000')

NiranjanK1
8 - Asteroid

@binuacs value is field name which is having numeric data. Mismatch is string data. But with both of details I want additional decimals for number. It's not working any suggestions how can I add additional decimals.  Thanks in advance 

Labels
Top Solution Authors