We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Percentage of Total

ntudev
8 - Asteroid

How do i get the percentage of total like the below, i'm just interested in what is the percentage of total per Date. please help!

 

DateCriticalTotal Valuepercentage of total
2/28/2023Critical $     2,703,290,154.3726%
2/28/2023Not Critical $     7,554,224,205.4574%
1/31/2023Critical $        703,290,154.378%
1/31/2023Not Critical $     8,554,224,205.4592%
5 REPLIES 5
DataNath
17 - Castor
17 - Castor

Hey @ntudev, here's how I'd go about this:

 

1) Create a new, numeric version of the [Total Value] column so we can work with it as needed

2) Use a Summarize tool to create a sum of this [Total Value], grouped by [Date]

3) Join this total back to the relevant [Date]

4) Divide [Total Value] by the relevant sum, multiplying by 100 and converting to a string to add the '%' sign

5) Clean-up fields that were made temporarily to get to the solution

 

Hope this helps!

 

2001.png

PhilipMannering
16 - Nebula
16 - Nebula

Hi @ntudev,

 

How about this?

image.png

ntudev
8 - Asteroid

this works but i am trying to get the full decimals like the below, right not its just giving me 0% how do i change it to the below?

    750,000,000.00    89,990,042,740.480.008334
    450,000,000.00    89,990,042,740.480.005001
    475,000,000.00    89,990,042,740.480.005278
    500,000,000.00    89,990,042,740.480.005556
caltang
17 - Castor
17 - Castor

Another way to do it:

 

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
DataNath
17 - Castor
17 - Castor

Hey @ntudev, that will be the Round() doing that as it's to the nearest whole number. If you remove that it should work:

 

2007.png

Labels
Top Solution Authors