Alteryx Designer Desktop Discussions

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

Need to assign value for last Number of column

Pinky
8 - Asteroid

Hi Team,

 

I need to assign TRUE or FALSE based on column. See my below data.

 

TicketNumberTicketCountLastValue
AA1 
AA1 
AA1TRUE
BB2 
BB2 
BB2TRUE
CC3 
CC3TRUE

 

 

So, I need to assign a "TRUE" statement for each ticket for the last value as shown above.

Please anyone help on this.Please let me know if you don't understand my query.

 

Regards,

Pinky 

 

 

 

5 REPLIES 5
Kenda
16 - Nebula
16 - Nebula

Hey @Pinky!

 

If you add a Multi-Row Formula tool and create a new string field with the following expression, does this accomplish what you're looking for?

 

iif([Row+1:TicketNumber]!=[TicketNumber],"TRUE","FALSE")
Pinky
8 - Asteroid

Yes,formula working as expected.Thanks!

 

I really appreciate your help!

 

Regards,

Pinky

Pinky
8 - Asteroid

What if in case i need to update "TRUE" status for one row before last row of each Ticket Number?

 

Thanks,

Pinky

Kenda
16 - Nebula
16 - Nebula

@Pinky You will have to increase Num Rows to 2. Then, depending on if you still want your last row to be TRUE, try the following expression:

iif([Row+2:TicketNumber]!=[TicketNumber] && [Row+1:TicketNumber]=[TicketNumber],"TRUE","FALSE")

This is the output I get when I use that

second to last row truw.PNG

Pinky
8 - Asteroid

My Data is shown below. I need to meet two conditions which are

1.For each number the first group of the date should get updated in to updated Date field.

2.Whenever group(AA) is changed to new group(AB) for each number, the one before row date should get updated in to updated date field like shown below. Please help on this?

 

NumberDateGroupUpdated date
1111/2/2017AA1/2/2017
1111/12/2017AA 
1111/3/2017AB1/12/2017
22211/2/2017BB11/2/2017
22211/3/2017BB 
22211/5/2017BD 
22212/3/2017BE11/3/2017
3333/4/2017CC3/4/2017
3333/5/2017CC 
3334/4/2017CD3/5/2017
Labels