Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

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

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