Alteryx Designer Desktop Discussions

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

Grouping by parent code and counting the parent groups ......

RRSmith
5 - Atom

I am trying to Group by parent code and count the parent groups and applying a parent id to each child record

 

Current record set

Parent codeChild record IDChild codeQty per
abc136582
abc284521
def174582
def296585
def323581
ghi145212
ghi215288
ghi333251
ghi442561
    
    

 

I have sorted by Parent code. Now I would like to count the parent groups and apply the parent ID to each child record:

 

Parent IDParent CodeChild record IDChild codeQty per
1abc136582
1abc284521
2def174582
2def296585
2def323581
3ghi145212
3ghi215288
3ghi333251
3ghi44256

1

 

I have tried with the summary tool and the multi-row formula tool and can not get the desired result. I feel the Multi-row formula would do it; I nee a little help getting it right.

 

RRSmith

4 REPLIES 4
ImadZidan
12 - Quasar

Hello @RRSmith ,

 

I have looked at the scenario.

 

Not sure its clear to me. So your expected out put is ?

 

This? How are you counting the groups. Sorry for the questions. Just trying to understand.

Parent IDParent CodeChild record IDChild codeQty per
1abc136582
1abc284521
2def174582
2def296585
2def323581
3ghi145212
3ghi215288
3ghi333251
3ghi44256

1

RRSmith
5 - Atom

the table above is the existing record set. The bottom table is what I am attempting to accomplish. would like a count of unique parent groups and the group ID (count value) appended in new column. Ultimately, each record should have a field identifying the parent group it belongs to 1, 2, 3, etc.

 

Thanks for the rapid reply, if more explanation is needed, don't hesitate. 

ImadZidan
12 - Quasar

Hello @RRSmith ,

 

This is something that may give you an idea. 

 

Hope it helps.

 

RRSmith
5 - Atom

Can not thank you enough...….

Bravo!

Labels