Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Percentage calculation

wonka1234
10 - Fireball

Hi,

 

How can I convert my formula to a percentage?

 

wonka1234_0-1655136488554.png

 

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

Just wrap it in ()*100, so:

([$ Difference (Attribute Abi)] / [MTD NII (IA Recalculated)])*100

 

If you actually want it with a % symbol then you can also use:

ToString(([$ Difference (Attribute Abi)] / [MTD NII (IA Recalculated)])*100)+'%' - for this approach, you'll need to change your output data type to a string in the formula tool.

JamesCharnley
13 - Pulsar

Hi Wonka,

 

If you're just sort of looking for an aesthetic %, perhaps for a report, then I think the easiest thing to do would be to just multiply your output by 100, convert it to a string, and add a '%' to the end in a formula. If you're looking for something different then let me know. Cheers.

Labels
Top Solution Authors