Alteryx Designer Desktop Discussions

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

Create a new table based on difference between two tables

mupad2008
6 - Meteoroid
Hi Members,

I have two tables with same rows and fields, one shows start of day values, and the other close of day. I want to create a new table based on numeric difference between the two, that is change during the day.

Is there a simple way to do this. Any help is greatly appreciated.

Best!

table1 apr may jun
a 12 52 65
b 24 31 71
c 17 28 83

table2 apr may jun
a 19 54 37
b 37 28 54
c 33 27 63
New Table apr may jun
a 7 2 -28
b 13 -3 -17
c 16 -1 -20
5 REPLIES 5
LordNeilLord
15 - Aurora

Hey @mupad2008

 

I'd go for something like this:

 

Difference.PNG

mupad2008
6 - Meteoroid
Brilliant, job done!

Thanks for the quick reply!
mupad2008
6 - Meteoroid

Hi Neil,

 

Ran into another similar issue.

First data set have several records and their monthly values, I need to create a new table where the new records are a  function of previous records.

For example I have Record A and Record B, I need a new table with Record X (which is A - B) for all months.

 

I could do this based on earlier solution by creating 2 duplicate streams, transposing  and joining them, however under formula I need to use a "WHERE CLAUSE" equivalent to identify A and B, and then write their resultant diff in new table.

 

What formula expression could be use is this case

Something like this is what I need to do ( [Value] where IN = 'A' - [Right_Value] where IN = 'B')

 

Thanks!

IN201804201805201806201807
A74524677
B56317022
C71663252
D20253666
E57426540
     
OUT201804201805201806201807
A-B1821-2455
C-(0.8D)55463.2-0.8
D+E7767101106
patrick_digan
17 - Castor
17 - Castor

@mupad2008 The attached may work. 

Capture.PNG

mupad2008
6 - Meteoroid

Hi Patrick, thanks for the fix. works perfectly in actual case.

 

Best!

Labels