Hi
I have some data which is arranged in a table in alteryx similar to the following
| | 1 | 2 | 3 | 4 | 5 | 6 |
| 1 | NULL | 10 | 20 | 30 | 40 | 60 |
| 2 | | NULL | 10 | 20 | 30 | 45 |
| 3 | | | NULL | 10 | 20 | 30 |
| 4 | | | | NULL | 10 | 25 |
| 5 | | | | | NULL | 20 |
| 6 | | | | | | NULL |
the data represents the price so if you buy a 1 > 2 the price is 10 and if you buy a 1 > 6 the price is 60.
What I am then trying to check is if you buy a 1>2 and a 2>6 is this cheaper than a 1>6. In this case it would be 1>2 = 10 + 2>6 = 45 total 55 so it would be 5 cheaper.
I can do this in excel after creating the table as below, but is there a way to do this in Alteryx?
| | 1 | 2 | 3 | 4 | 5 | 6 | DIFF | | | |
| 1 | NULL | 10 | 20 | 30 | 40 | 60 | -5 | -10 | 0 | 0 |
| 2 | | NULL | 10 | 20 | 30 | 45 | | -5 | 5 | 5 |
| 3 | | | NULL | 10 | 20 | 30 | | | 10 | 10 |
| 4 | | | | NULL | 10 | 25 | | | | 5 |
| 5 | | | | | NULL | 20 | | | | |
| 6 | | | | | | NULL | | | | |