Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Index rows

CCares17
5 - Atom

Hi, I have data similar to the timestamp and location fields below and need to sequence locations into visits. I can get somewhat close using the multi-row formula tool, but need to distinguish between multiple visits to the same location during the same day (rows 4-6 should be 3 not 1). Any help appreciated!

TimestampLocationDesired Field

8:56:00

A1
9:05:00A1
10:30:00B2
11:41:00A3
12:13:00A3
13:56:00A3
14:20:00C4
3 REPLIES 3
Chantelb
9 - Comet

Hi  @CCares17 ,

You're right, you could use a multi-row formula tool: 

 

IF ISNULL([Row-1:Desired Field]) THEN 1
ELSEIF [Row-1:Location] = [Location] THEN [Row-1:Desired Field]
ELSE [Row-1:Desired Field] + 1
ENDIF

 

Let me know if this helps

Qiu
21 - Polaris
21 - Polaris

@CCares17 
What is the logic for row#1 and row#2?

CCares17
5 - Atom

Yes, this is exactly what I needed, thank you!

Labels
Top Solution Authors