Free Trial

Alteryx Designer Desktop Discussions

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

Subtracting Row 1 minus Row 2 for Discrepancy

Srikanth_Dahima
6 - Meteoroid

I have my Input data as below 

Description8901687006Total
Ending Balance as Per Cash Sheet16886.916886.9
Ending Balance As per Bank16886.916886.9


Expected Output is

Description8901687006Total
Ending Balance as Per Cash Sheet16886.916886.9
Ending Balance As per Bank16886.916886.9
Discrepancy00



Thanks in advance for your help

8 REPLIES 8
alexnajm
18 - Pollux
18 - Pollux

I have a suspicion that there is more data beyond this, but for the data you have presented I would use a Crosstab tool to move the Description to headers, calculate the Discrepancy with a Formula, and Transpose back

alexnajm
18 - Pollux
18 - Pollux

You can do something similar for the total if it's needed

Srikanth_Dahima
6 - Meteoroid

Hey @alexnajm Thanks for Looking into So If i need to do it for Total Coloum also then i have to use this tools Multiple times with the data we have and then Union it

alexnajm
18 - Pollux
18 - Pollux

You have a workflow that works for one - now you can use similar (if not the same) logic for the Total column and any other columns you may have 😊 I don't want to assume what your data looks like so I can't help further

Srikanth_Dahima
6 - Meteoroid

Thank you So much for your help on this.

MelGibson
10 - Fireball

I am sure there is an easier way, but this was the quickest way for me. Hope it helps. 

Srikanth_Dahima
6 - Meteoroid

Thank you This looks easier and Cleaner 

alexnajm
18 - Pollux
18 - Pollux

Agreed!

Labels
Top Solution Authors