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.
SOLVED

Grouping Columns based on Row Criteria and Creating a new Sheet for the results

NicoleHou
7 - Meteor

Revised Information, still looking for solution.

 

I am trying to Group Columns based on Row Criteria and Creating a new Sheet for the results.  For example, I am trying to group the columns based on the top row, then create a sheet with the "subtotals" for each group?

 

Data

 

   xyxxzxzyzzzz
   123P4345P6123P4123P4445P9123P4355P5123P4345P6
   P4P6P4P4P9P4P5P4P6
   ColbyMooreColbyColbyRalphColbyJimColbyMoore
   Year To DateYear To DateYear To DateYear To DateYear To DateYear To DateYear To DateYear To DateYear To Date
   Aug-22Aug-22Aug-22Aug-22Aug-22Aug-22Aug-22Aug-22Aug-22
Account Account DescriptionC123P4 - XY Corp.C345P6 - XYZ Investment LLC C123P4 - XY Corp.C123P4 - XY Corp.C445P9 - BB LPC123P4 - XY Corp.C355P5 - ABC Investment LLC C123P4 - XY Corp.C345P6 - XYZ Investment LLC 
44123TOTALAcct 112345.6622345.6612345.6612345.6632345.6612345.661012345.6622345.66
44124TOTALAcct 22345.6832345.682345.682345.68332345.682345.682502345.684400
44125TOTALAcct 3 564.881564.88564.88564.8831564.88564.88700564.881564.88
44125TOTALAcct 412345.6622345.6612345.6612345.6632345.6612345.661012345.6622345.66
44126TOTALAcct 52345.6832345.682345.682345.68332345.682345.682502345.6832345.68
44127TOTALAcct 6564.881564.88564.88564.8831564.88564.88700564.881564.88
44128TOTALAcct 7564.881564.88564.88564.8831564.88564.88700564.881564.88
44129TOTALAcct 812345.6622345.6620012345.6632345.6612345.661012345.6622345.66
44130TOTALAcct 92345.6832345.682345.682345.68332345.682345.682502345.6832345.68
44131TOTALAcct 10564.881564.88400564.8831564.88564.88700564.881564.88
44132TOTALAcct 11564.881564.88564.88564.8831564.88564.88700564.881564.88
44133TOTALAcct 1212345.6622345.6612345.6660032345.6612345.661012345.6622345.66
44134TOTALAcct 132345.6832345.682345.682345.68332345.682345.682502345.6832345.68
44135TOTALAcct 14564.881564.88564.8880031564.88100700564.881564.88
44136TOTALAcct 15564.881564.88564.88564.8831564.88564.88700564.881564.88
44137TOTALAcct 1612345.6622345.6612345.6612345.6632345.667001012345.6622345.66
44138TOTALAcct 172345.6832345.682345.682345.68332345.681000250330032345.68
44139TOTALAcct 18564.881564.88564.88564.8831564.88564.88700564.881564.88

 

Desired Output

   Group xGroup yzxxzz 
         
         
         
   Year To DateYear To Date   Total
   Aug-22Aug-22    
Account Account Description      
44123TOTALAcct 144691.3222355.6624691.3212345.6634691.32              138,775.28
44124TOTALAcct 2334691.3632595.684691.362345.686745.68              381,069.76
44125TOTALAcct 3 32129.762264.881129.76564.882129.76                38,219.04
44125TOTALAcct 444691.3222355.6624691.3212345.6634691.32              138,775.28
44126TOTALAcct 5334691.3632595.684691.362345.6834691.36              409,015.44
44127TOTALAcct 632129.762264.881129.76564.882129.76                38,219.04
44128TOTALAcct 732129.762264.881129.76564.882129.76                38,219.04
44129TOTALAcct 844691.3222355.6624691.3220034691.32              126,629.62
44130TOTALAcct 9334691.3632595.684691.362345.6834691.36              409,015.44
44131TOTALAcct 1032129.762264.881129.764002129.76                38,054.16
44132TOTALAcct 1132129.762264.881129.76564.882129.76                38,219.04
44133TOTALAcct 1244691.3222355.6612945.6612345.6634691.32              127,029.62
44134TOTALAcct 13334691.3632595.684691.362345.6834691.36              409,015.44
44135TOTALAcct 1432129.762264.88900564.882129.76                37,989.28
44136TOTALAcct 1532129.762264.881129.76564.882129.76                38,219.04
44137TOTALAcct 1644691.3222355.6613045.6612345.6634691.32              127,129.62
44138TOTALAcct 17334691.3632595.683345.682345.6835645.68              408,624.08
44139TOTALAcct 1832129.762264.881129.76564.882129.76                38,219.04
 Total           2,153,951.48                                       292,875.74                                       130,984.72                                         65,665.20                                       336,960.12          2,980,437.26

I tried transpose and then summarize plus multi field formula  but I can't seem to get it.  Thank YOU!

 

4 REPLIES 4
binuacs
21 - Polaris

@NicoleHou One way of doing this

 

binuacs_0-1664922705262.png

 

NicoleHou
7 - Meteor

I edited my post to include a better example

 

I will try another example, that worked perfectly for the two groups, but I have 9 "groups" and hundreds of accounts and columns....so I was hoping to group those that had the same group name and keep all accounts....but I would have to do the formula hundreds of formulas and know which one was what group.  Any tips to make this easier?

 

Thank You very Much! 

 

 

binuacs
21 - Polaris

@NicoleHou attaching the updated workflow

 

binuacs_1-1665094945092.png

 

 

NicoleHou
7 - Meteor

@binuacs Thank you!

Labels
Top Solution Authors