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 after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

Using multi row tool to create group record ID but skipping null cells

davidnolan
7 - Meteor

Hello,

 

I have a workflow that anonymises specified columns and one of the key steps involved is using a multi row formula tool that creates a grouped record ID column. My issue is that sometimes my data will have null cells and I'm not sure how to skip these cells when formulating the Multi-Row Formula tool. I've attached a screenshot of the Multi-Row Formula tool below. I would like the values in the [Value ID] column to skip counting row 13 due to the null value in the [Value] field. So that instead of 5 it will be a null value and the cell beneath it will be 5 instead. How do I do this? Any help would be really appreciated!

 

Thanks!

 

davidnolan_1-1674649863902.png

 

 

4 REPLIES 4
ShankerV
17 - Castor

Hi @davidnolan 

 

Please use the below.

 

IF (IsNull[Value])

THEN [Row-1:Value ID]

ELSE  [Row-1:Value ID]+1

ENDIF 

ShankerV
17 - Castor

Hi @davidnolan 

 

I also believe you are trying to reach the solution like this.

 

ShankerV_0-1674651187230.png

 

ShankerV
17 - Castor

Hi @davidnolan 

 

To achieve where if it is null() skip the counting is difficult in Multirow formula.

 

so I recommended the above soluttion.

 

Step 1: Use Multirow formula tool to skip the counting

 

IF IsNull([Value])
THEN [Row-1:Value ID]
ELSE [Row-1:Value ID]+1
ENDIF

 

ShankerV_0-1674651359544.png

 

Then on step 2: Made the value null if the value is null in the other column as given in the screenshot.

 

ShankerV_1-1674651397164.png

Hope this helps!!!!

 

Many thanks

Shanker V

 

 

 

davidnolan
7 - Meteor

Perfect that has solved my issue! Thank you!

Labels
Top Solution Authors