Alteryx Designer Desktop Discussions

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

Multi field or Multi row conditioning help?

Hoss2434
7 - Meteor

I have a data set that consists of 3 fields: store number, ID, and name such as below:

Hoss2434_1-1638490467355.png

 

The issue I have is that every "Name" under "Store 2" does not have a middle name, which is what I need to keep the data consistent. The ideal outcome would look as such:

Hoss2434_2-1638490574443.png

 

Is there a way I can apply the following logic:

If the ID field for Store 1 = the ID field for Store 2,

Then the Name for Store 2 = the Name for Store 1,

Else the Name for Store 2 remains as is

 

 

Any help would be greatly appreciated!

Thanks!

 

6 REPLIES 6
Qiu
20 - Arcturus
20 - Arcturus

@Hoss2434 
maybe something like below? 😁

1203-Hoss2434.PNG

Hoss2434
7 - Meteor

The issue is that there may be different names in-between, so it wouldn't necessarily work if it takes the value before, or after the row.

Qiu
20 - Arcturus
20 - Arcturus

@Hoss2434 
Yes, I forget about the Store ID, we can group by Store ID.

1203-Hoss2434-r1.PNG

Hoss2434
7 - Meteor

Unfortunately, that didn't work. My actual dataset is scattered so referencing the row below or after will not work in this example. Sorting the data in this specific scenario is not an optimal solution for this example in case you were thinking of using that as a workaround.

Hoss2434
7 - Meteor

A more realistic before and after scenario of my situation would look like this actually:

 

Before:

Hoss2434_0-1638501729135.png

 

After:

Hoss2434_1-1638501746077.png

 

Qiu
20 - Arcturus
20 - Arcturus

@Hoss2434 
A sorting tool will do😁

1203-Hoss2434-r2.PNG

Labels