We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Need Assistance with Setting Up Multi-Row Formula Tool (never used it before)

TomBock
8 - Asteroid
Hi:
 
I'm relatively new to using Alteryx.  Up until this point, I have not utilized the 'Multi-Row Formula' tool before.
 
Thus, I kindly request assistance with setting it up.  Attached are 3 files:
 
1. "SourceData -- Example Calculations":
1a. For [Amount], this demo files illustrates the subtraction of 2 rows (within the same column/field).   
1b. For now, the ABS value is fine.
 
1. "SourceData -- Example Calculations":
1c. For [Date1] and [Date2], I would like to identify the delta between Date1 and Date2 for each consecutive rows.  
 
2. "SourceData"
- Contains the data for [Amount], [Date1], [Date2] without the sample calculations...
- ... so, pls used this data source for the Alteryx process.
 
3. "Multi-Row Formula":
- I tried setting up the 2 different calculations using the Multi-Row formula tool.
 
 
My questions:
- How do they two multi-row formulas tools have to be modified in order to achieve the desired outcome?
2 REPLIES 2
Clifford_Coon
11 - Bolide

Hi @TomBock ,

 

Here is a method:

Annotation 2023-04-21 115341.jpg

Annotation 2023-04-21 115312.jpg

The formulas are:

IF isnull([Row-1:Amount]) THEN null() ELSE ABS([Amount] - [Row-1:Amount]) ENDIF

 

and 

IF IsNull([Row+1:Date1]) THEN null() ELSE DateTimeDiff([Row+1:Date1],[Date2],"Seconds") ENDIF

 

Note: I did the time delta in seconds.

TomBock
8 - Asteroid

@Clifford_Coon -- wow, that's PERFECT!!

 

Many thanks for your assistance w/ this question... I very much appreciate it.

 

Cheers,

Tom

Labels
Top Solution Authors