Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Subtracting Row 1 minus Row 2 for Discrepancy

Srikanth_Dahima
メテオロイド

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件の返信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
メテオロイド

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
メテオロイド

Thank you So much for your help on this.

MelGibson
ファイアボール

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

Srikanth_Dahima
メテオロイド

Thank you This looks easier and Cleaner 

alexnajm
18 - Pollux
18 - Pollux

Agreed!

ラベル
トップのソリューション投稿者