Alteryx Designer Desktop Discussions

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

IF G/L = x then subtotal y (different column)

davidlocke
7 - Meteor

I'm trying to replace a value in a column with a subtotal value on a different row and a different column.

 

Example of what my Alteryx data is this:

EntitiesCOGS CategoryG/L ACG/L DescP&L Recon SubtotalGL TB SubtotalDifferenceCOGS ReclassCOGS Reclass Type Descpription
1000Reclass558990Settlement Account  0.000.00None
1000COGS  564176142.15535583667.1528592475.000.00 
1000SG&A899120Settle Standing Orde  0.000.00Reclass is amt per P&L recon not part of CoGS on T/B.
1000VAR/Allocation  -23922780.98-8534034.08-15388746.900.00 
1100COGS  477029485.23477310624.35-281139.120.00 
1100Reclass558990Settlement Account  0.000.00None
1100SG&A899120Settle Standing Orde  0.000.00Reclass is amt per P&L recon not part of CoGS on T/B.
1100VAR/Allocation  -11937052.078622657.49-20559709.560.00

 

 

The end result would apply to the COGS reclass column of account 558900 by entity the difference column of the COGS subtotal row; and apply to the COGS Reclass column of account 899120 by entity the difference column of the equation of the  inverse (-) of the VAR subtotal row combined with the inverse (-)  of the COGS subtotal row.

 

EntitiesCOGS CategoryG/L ACG/L DescP&L Recon SubtotalGL TB SubtotalDifferenceCOGS Reclass
        
1000Reclass558990Settlement Account   28592475.00
1000SG&A899120Settle Standing Orde   -13203728.10
1100Reclass558990Settlement Account   -281139.12
1100SG&A899120Settle Standing Orde   20840848.68
        

 

  

 

1 REPLY 1
TonyA
Alteryx Alumni (Retired)

Here's one approach using a Multi-Row formula tool. I put the rows in a consistent order so I could use row offsets for calculations (setting a Row ID first so I could restore the original row order). Then I did the multi-row calcs, got rid of rows I didn't need, resorted the rows and dropped unneeded columns.2020-04-21_17-27-48.png

2020-04-21_17-32-56.png

Labels