In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Multiple columns subtracting

Lumjing
8 - Asteroid

Hi I have been trying to (please see below a sample data) with the output. I have multiple AB,CD columns to subtract and dont want to use formula tool as I have to add multiple formulas for each combination subtraction. I am also not able to use multi field tool as I cannot subtract A and B. is there a better way to achieve this 

 

ABCD    ABAB_CheckCDCD_Check
1222    12-1220
2313    23-113-2
3141    312413
3454    34-1541
6 REPLIES 6
flying008
15 - Aurora

Hi, @Lumjing 

 

FYI.

 

录制_2025_12_10_16_04_45_514.gif

 

5- Generate Rows

Condition Expression:

RecordID <= IIF(Mod([Tile_SequenceNum], 2), 1, 2)


6- Multi-Row Formula
Expression:

IIF([RecordID] = 2, [Row-2:Value] - [Row-1:Value], [Value])

 

7- Multi-Row Formula
Expression:

IIF([RecordID] = 2, [Row-2:Name] + [Row-1:Name] + '_Check', [Name])

 

Tile_Num2ABAB_CheckCDCD_Check
1110-91001000-900
2220-182002000-1800
3330-273003000-2700
4440-364004000-3600
Lumjing
8 - Asteroid

@flying008  thanks for the quick reply. if possible can you share the workflow here

flying008
15 - Aurora

Hi, @Lumjing 

 

Just try it by yourself as above process and expression, so easy !

Lumjing
8 - Asteroid

@flying008 yes trying to follow but taking time to follow from Generate row tool. Workflow could have helped faster :)

Lumjing
8 - Asteroid

@flying008 it worked thanks so much 

flying008
15 - Aurora

Hi, @Lumjing 

 

Nice done !  👍

Labels
Top Solution Authors