Alteryx Designer Desktop Discussions

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

Look up for table with specific contraints (start with and end with)

smallpotato
7 - Meteor

Hi, I am looking for ways to look up for tables with below constraints

Table A (look up table)

Constraints to [code]Start withEnd withID
1A02123
2B03456
3.........  

 

Table B

CodeIDcolumn Acolumn B
A12302000xxxxxx
A12301000xxxxxx
B12303000xxxxxx
B12304000xxxxxx
C12303000xxxxxx

 

If the [code] in table B, meet the constraints in table A, replace the [ID] in Table B with the corresponding [ID] in Table A.

For example, code [A12302] starts with "A" and end with "02", which matches constraint 1, then we have to replace its ID from "000" to 123

code "A12301" is starts with "A" but no end with "02", just keeps its ID as "000"

How should i implement this logic in alteryx?

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@smallpotato 

There is Function "StartWith" and "Endwith" in the Formula tool, maybe we can utilize them?

0111-smallpotato.png

CoG
13 - Pulsar

Alternatively, if your criteria are standardized (i.e. [Start with] is always a single character and [End with] is always two characters). Then you can pull out join criteria from [Code], and then Join on those criteria columns:

_Main.png

nagakavyasri
12 - Quasar

Another Alternative:

 

Capture1.PNG

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels