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

Comparative Question

nihou
8 - Asteroid

I am comparing two tables and having a hard time getting desired results.

 

Would like to subtract the first dataset from the second data set.

7 REPLIES 7
nihou
8 - Asteroid
Trying to get a simple variance that I would normally do in a pivot but Alteryx could save me some time when I have varying products.
     
Source 1    
O typeS typeProdVolVal
BAFEDCOND45.3443.29
BAFEDGAS21.9636.96
BAFEDOIL498.49498.49
BAFEDPPROD87.2342.29
BAFEDSTFED653.02621.03
CPOR COND192.27192.27
CPOR GAS65.5910.43
CPOR PPROD2,556.792,556.79
CPOR STOR2,814.652,759.49
     
Source 2    
O typeS typeProdVolVal
BAFEDGAS20.7834.62
BAFEDOIL51.7544.72
BAFEDPPROD8,764.11864.11
BAFEDSTFED8,836.64943.45
CPORRIGAS139.2323.81
CPORRIOIL964.83964.83
CPORRIPPROD4,472.234,472.23
CPORRISTOR5,576.295,460.87
     
Desired Results    
O typeS typeProdVolVal
BAFEDCOND-45.34-43.29
BAFEDGAS-1.18-2.34
BAFEDOIL-446.74-453.77
BAFEDPPROD8,676.88821.82
BAFEDSTFED8,183.62322.42
CPOR COND-192.27-192.27
CPOR GAS73.6413.38
CPOR OIL964.83964.83
CPOR PPROD1,915.441,915.44
CPOR STOR2,761.642,701.38
     
Any help appreciated, thank you!    
nihou
8 - Asteroid

First Dataset

O typeS typeProdVolVal
BAFEDCOND45.3443.29
BAFEDGAS21.9636.96
BAFEDOIL498.49498.49
BAFEDPPROD87.2342.29
BAFEDSTFED653.02621.03
CPOR COND192.27192.27
CPOR GAS65.5910.43
CPOR PPROD2,556.792,556.79
CPOR STOR2,814.65

2,759.49

nihou
8 - Asteroid

Second Dataset

 

O typeS typeProdVolVal
BAFEDGAS20.7834.62
BAFEDOIL51.7544.72
BAFEDPPROD8,764.11864.11
BAFEDSTFED8,836.64943.45
CPORRIGAS139.2323.81
CPORRIOIL964.83964.83
CPORRIPPROD4,472.234,472.23
CPORRISTOR5,576.295,460.87

 

Desired Results

 

O typeS typeProdVolVal
BAFEDCOND-45.34-43.29
BAFEDGAS-1.18-2.34
BAFEDOIL-446.74-453.77
BAFEDPPROD8,676.88821.82
BAFEDSTFED8,183.62322.42
CPOR COND-192.27-192.27
CPOR GAS73.6413.38
CPOR OIL964.83964.83
CPOR PPROD1,915.441,915.44
CPOR STOR2,761.642,701.38

 

Sorry for so many replies, I have tried to post this question for over 12 hours and Alteryx keeps flagging it, am I doing something incorrectly? Trying to compare two tables and having trouble, any help appreciated

nihou
8 - Asteroid

Second Dataset

O typeS typeProdVolVal
BAFEDGAS20.7834.62
BAFEDOIL51.7544.72
BAFEDPPROD8,764.11864.11
BAFEDSTFED8,836.64943.45
CPORRIGAS139.2323.81
CPORRIOIL964.83964.83
CPORRIPPROD4,472.234,472.23
CPORRISTOR5,576.295,460.87

 

nihou
8 - Asteroid

Desired results

 

O typeS typeProdVolVal
BAFEDCOND-45.34-43.29
BAFEDGAS-1.18-2.34
BAFEDOIL-446.74-453.77
BAFEDPPROD8,676.88821.82
BAFEDSTFED8,183.62322.42
CPOR COND-192.27-192.27
CPOR GAS73.6413.38
CPOR OIL964.83964.83
CPOR PPROD1,915.441,915.44
CPOR STOR2,761.642,701.38

 

 

binuacs
21 - Polaris

@nihou One way of dong this

 

binuacs_0-1654445887252.png

 

nihou
8 - Asteroid

@binuacs Thank you very much for your help!

Labels
Top Solution Authors