Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

Alteryx Designer Desktop Discussions

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

How to convert the a decimal into a percentage

ASHccccc
6 - Meteoroid

sorry that it maybe a stupid question.......😓 a new bird is still learning, and keep learning.... tried to check the help center but soooo unluckily that found nothing.....

just a simple request, how to conver 0.5 to 50%......

Thx for your time anyway for reading this post, and appreciate your help in advance.

6 REPLIES 6
messi007
15 - Aurora
15 - Aurora

@ASHccccc,

 

Please see below :

 

messi007_0-1659690145268.png

 

Attached the workflow,

Hope this helps!

Regards

DataNath
17 - Castor

Hey @ASHccccc, as far as I know the only way to create a percentage in that exact format with the notation is to create a string field with something along the following lines as an expression - just need to replace [Number] with your field:

 

 

ToString([Number]*100)+'%'

 

 

DataNath_0-1659690174393.png

ASHccccc
6 - Meteoroid

thx for the prompt response @messi007, may I ask one more question that how to make the  decimal places 2 digits only? when some results came out like 0.33333333333, it'll show a long long number....

DavidSkaife
13 - Pulsar

Hi @ASHccccc 

 

Use this expression within the formula:

 

 

 

ToString(Round([Field1]*100,0.01))+"%"
messi007
15 - Aurora
15 - Aurora

@ASHccccc,

 

You can update the formula like below :

 

messi007_0-1659693301163.png

 

Hope this helps !

Regards

ASHccccc
6 - Meteoroid

great!!!! thx  a lot!!!!!!!!!!!!!!!!!!!

Labels