Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

Analytic App: Normalize Field Name

danloz
8 - Asteroid

Hi,

 

I'm hoping somebody has a recipe for this.  

 

My analytic app should:  

1)  solicit a file from the user

2)  ask the user to choose a specific field for further processing (done!)

3)  Leverage the field from 2 in a join against some system data that I'm querying along a different branch.  

 

My trouble is, the users selected field from 2's name could be anything.  So I guess my choices are:  

A)  Dynamically influence the join maybe using the same list box technique I used in 2.  I've experimented with this but it doesn't seem real intuitive but I allow I might be missing something.  

B)  Find a way to force rename the field, without actually knowing what the field was originally named.  

 

Does anyone have any experience doing something like this?  

 

2 REPLIES 2
Luke_C
17 - Castor
17 - Castor

Hi @danloz 

 

I don't have any direct experience with this fact pattern, but my initial reaction is that the dynamic rename tool can probably help get this done.

 

https://help.alteryx.com/current/designer/dynamic-rename-tool

 

danilang
19 - Altair
19 - Altair

Hi @danloz 

 

You should be able to do it using a technique similar to this

 

The Join has to be configured in a particular way.  You need to join on a specific changeable field and also rename the field in the select to the name used later on in the workflow(TargetName).  In this case the field on the left of the join can be either A, B or C, so the join is on A and the Rename is also on left A 

 

danilang_0-1621422317563.png

 

 

danilang_2-1621422521931.png

 

The left Action tool is pretty standard, just change the join field name.

danilang_1-1621422382914.png

 

The right Action tool changes the select portion of the join to rename the field that was selected in the drop down

danilang_3-1621422900645.png

 

When run as an app the field selected in the drop down is used to join and the field is also renamed

 

danilang_4-1621422998109.png

 

Dan

  

 

Labels