Alteryx Designer Desktop Discussions

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

Insert Rows For Each Category

dataminer
6 - Meteoroid

I have 8 total categories. A-H. Each record only contains some of the categories.

How would I go about adding just the categories that are missing?

Excel Screenshot for reference.

 

Thanks!

4 REPLIES 4
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @dataminer,

 

You could scaffold the data using a summarise and append fields:

 

image.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

dataminer
6 - Meteoroid

I need to keep the rows from the original data set since there is other info in other columns that I left our for simplicity.

I updated my data structure below.

 

RecordIDCategoryAmount RecordIDCategoryAmount
1A2 1A2
1C8 1B0
1D6 1C8
2E4 1D6
2F3 1E0
    1F0
    1G0
    1H0
    2A0
    2B0
    2C0
    2D0
    2E4
    2F3
    2G0
    2H0
Aaron_Harter
11 - Bolide

@dataminer the attached solution will allow you to keep your existing data points, and generate the 0's for all other amounts:

2.PNG

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @dataminer,

 

In that case I would just add a little bit extra:

 

image.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

Labels