Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Percent of total - Values

JDong
8 - Asteroid

Hi Team,

 

I need to calculate the percentage value for 2 columns

 

ClosedOpenClosed %Won %
01  
01  
01  
00  
00  
11  
01  
01  
10  
10  

 

How can I get the results for Closed% and Won% in the above table ? 

 

Thanks

16 REPLIES 16
Emil_Kos
17 - Castor
17 - Castor

Hi,


I wasn't sure what is the expected output but I have prepared something for you:

 

Emil_Kos_0-1606484460191.png

 

This is the workflow:

 

Emil_Kos_0-1606486782146.png

 

 

 

Unfortunately Alteryx don't have an easy tool in order to do this. 

 

Append formula is really good to add information about sum of won/closed + amount of all lines to all the rows that you got. 

 

I have attached a workflow. Please let me know if this is something helpful and if it is please mark my post as a solution.

 

Good Luck!

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1606484794793.png

Workflow:

atcodedog05_1-1606484807379.png

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

atcodedog05
22 - Nova
22 - Nova

 

Interesting, now you have 2 different approaches @JDong 🙂

JDong
8 - Asteroid

Thanks 🙂

JDong
8 - Asteroid

@Emil_Kos @atcodedog05 

 

One additional question.

 

What if I need to calculate SUM(Closed)/Sum(Won)

 

Where sum of Closed or Won would be the count of 1 in the dataset ?

 

ClosedOpen%
01 
01 
01 
00 
00 
11 
01 
01 
10 
10 

 

Thanks

Emil_Kos
17 - Castor
17 - Castor

Hi,

 

I believe you need to use this formula:

 

([Sum_Closed]+[Sum_Open])/[Count]*100

 

I have simplified my workflow as the previous solution provided by @atcodedog05 was better. 

 

Emil_Kos_0-1606486218826.png

 

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

Added a little bit of formatting to my previous one 😅

 

Here is a workflow for the task.

Output:

atcodedog05_0-1606486593505.png

Workflow:

atcodedog05_1-1606486608411.png

 

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

atcodedog05
22 - Nova
22 - Nova

Guess i understood the requirement wrong again, sorry😅

JDong
8 - Asteroid

@Emil_Kos @atcodedog05 

 

Thanks a lot to both of you !

 

one more question.

 

FruitsClosedOpen%
Grapes01 
Apple01 
Apple01 
Apple00 
Pear00 
Grapes11 
Grapes01 
Grapes01 
Pear10 
Pear10 

 

Is there a kind of LOD calulation in Alteryx. The values for % are currently constant, but is there a way they can change if we have a filter for the Fruits column ?

So the percentage would be different based on the fruit I filter on.

 

Thanks !

Labels