Alteryx Designer Desktop Discussions

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

Multi - Row Formula

BRRLL99
11 - Bolide

Hi Team,

 

I have following input 

 

IDSTARTDATEENDDATECMOUNT
615N202309072023090888
615N20230908OPEN100
616N2023090720230908100
616N20230908OPEN120
617N202309072023090899

 

calculation on the basics of

Group by ID

if row no: 2 of STARTDATE is equal to row no: 1 of ENDDATE, then (100 - 88) should be calculated

 

IDSTARTDATEENDDATECMOUNT
615N202309072023090812
616N202309072023090820
617N202309072023090899

 

1 REPLY 1
niklas_greilinger
9 - Comet

Hi,

I attached a possible solution for your problem. Is this suitable for you?

Formula:
"IF [Row+1:STARTDATE] = [ENDDATE] THEN [Row+1:CMOUNT]-[CMOUNT] ELSE [CMOUNT] ENDIF"

Labels