The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
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.
RÉSOLU

RecordID reset formula

gabrielmier222
Météore

I need a fromula (thinking multi-formula) that resets the RecordID back down to 1, when the date in a cell is different than the one above it. 

Example below is the excel desired output

gabrielmier222_0-1683737560614.png

 

12 RÉPONSES 12
john_walker
Alteryx Alumni (Retired)

I solved this by doing two things:

 

First, I updated your multi row formula to this:

 

if [Date] != [Row-1:Date] then 1 else [Row-1:LINE_NO]+1 endif

 

instead of this:

 

if [Date] != [Row-1:Date] then 1 else [Row-1:RecordID]+1 endif

 

Notice you had RecordID so you were adding RecordID not LINE_NO

 

Second, I had to change the data type of LINE_NO to an INT data type so you can perform the addition/math on that field.

 

Hope that helps.

john_walker
Alteryx Alumni (Retired)

Here is updated workflow - note I had to remove the single quotes around 1 in the formula tool at the end as now that is an INT field

gabrielmier222
Météore

Thank you John, this worked!

Étiquettes
Auteurs des meilleures solutions