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

abc classifciation calculation on sales history

Pascal_R
8 - Asteroid

Hi all,

 

I have Material number and the sales data last past 6 months.

How can I calculate the classification if I have to consider below ABC rules:

 

A= 50% B=30 C=15 D=5

 

Please see attached example of dateset.

 

Thank you for any help on this.

 

Pascal

17 REPLIES 17
jdunkerley79
ACE Emeritus
ACE Emeritus

Can you give more detail on what you want the result to be?

 

Do you want to allocate the QTY of each material into four classifications (A-D)?

 

Pascal_R
8 - Asteroid

@jdunkerley79 

 

Please see attached excel file where you can see what I need to try in Alteryx.

Hope this helps to understand it more.

 

Please let me know.

Regards,

Pascal

 

atcodedog05
22 - Nova
22 - Nova

Hi @Pascal_R ,

 

Here a workflow for the task.

atcodedog05_0-1600840949174.png

Input

atcodedog05_1-1600840964805.png

Output. Getting expected output.

atcodedog05_2-1600840990805.png

 

Hope this helps. Please check and let me know.

 

Please mark this post as solution if it solves your requirement.

Pascal_R
8 - Asteroid

Hi @atcodedog05 

 

Thank you very much for your fast replay.

If I try to open the workflow I got attached error.

Are you able to send it in the yxmd format?

 

Regards,

Pascal

grazitti_sapna
17 - Castor

Hi @Pascal_R , give this a try if it works for you.

 

grazitti_sapna_0-1600841876583.png

 

If this is what you are looking for then please mark this post as solution/

 

Thanks.

 

Sapna Gupta
atcodedog05
22 - Nova
22 - Nova

Hi @Pascal_R 

 

Please find the workflow.

jdunkerley79
ACE Emeritus
ACE Emeritus

I'd suggest: 

jdunkerley79_1-1600841938627.png

 

- Sort into ascending QTY

- Use a running total tool to create a running total of QTY

- Use a summarise tool to make the grand total

- Use an append field to add the grand total to all rows

- Calculate the PctTotal as (RunningTotal - QTY) / GrandTotal: this give % used at start

- Allocate to A,B,C,D. I used a formula tool:

IF [PctTotal]<0.05 THEN "D"
ELSEIF [PctTotal]<0.2 THEN "C"
ELSEIF [PctTotal]<0.5 THEN "B"
ELSE "A"
ENDIF

 

Sample attached

 

Pascal_R
8 - Asteroid

Hi @grazitti_sapna 

 

Would that also be possible if I have date from different countries and need to do  the ABCD analysis then split by country?

Please see attached example data as a starting poin.

 

Regards,

Pascal

 

grazitti_sapna
17 - Castor

@Pascal_R , give this a try.

In running total tool group by plant so it will give you result as required.

grazitti_sapna_0-1600849563216.png

 

Thanks.

 

Sapna Gupta
Labels