In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Percentage of Rows

mehmetalikarabulut
メテオロイド

Suppose you have a column what about sales amounts. How can I get the sum of all lines for this column and print next to each line? I want to print the percentage amount next to each row according to the total quantity. For example:

 

1.png

 

 

4件の返信4
AngelosPachis
ネビュラ

Hi @mehmetalikarabulut ,

 

To get the total amount of all sales you have to use a summarize tool to aggregate them all up, and then with an append fields tool you can place that value right next to each record.

 

Finally, with a formula tool you can get the percentage of total for each record

 

AngelosPachis_0-1613925411211.png

 

Note that in your formula, to add the % suffix you have to convert the numeric value into a string and round it to no decimals.

 

Hope that helps, let me know if that worked for you

 

Cheers,

 

Angelos

mot
ボリード

You can use summarize tool to get the total of the sale amounts and then use append tool to add it to each row. After that, you can use the formula tool to get the percentages. I hope this helps.

mehmetalikarabulut
メテオロイド

Thanks a lot. Its work.

Qiu
21 - Polaris
21 - Polaris

@mehmetalikarabulut 

As a convention, you should mark the solution as accepted. 😁

It is an encourage to the author, also others can refer the solution.

ラベル
トップのソリューション投稿者