Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Let user map columns via app

Inactive User
Not applicable

Hi everyone,

 

I realise this question has been asked before, and I've tried several solutions from here, but somehow I can't get them to work for me. My only wish is to be able to let the user map the columns of their data coming in to our data model so we can then dynamically analyse everything correctly, even if the columns originally had different names.

 

So user workflow:

  • User selects file
  • User tells Alteryx which column is for date
  • User tells Alteryx which column has "Profit"

 

This is sort of what my workflow looks like right now:

MagnusShade_0-1623275667679.png

I attached the example; ideally I would have 5 options for 5 columns that need to be mapped/renamed.

 

I'd be super grateful for any help!

 

Cheers,

M

20 REPLIES 20
mceleavey
17 - Castor
17 - Castor

@Inactive User , in that case you can adjust the version in the workflow following the instructions in the following link:

 

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Adjusting-Alteryx-Files-for-Different-Versions/ta-p/26237

 

Outside that, we can't help you until you upgrade, I'm afraid.

 

M.



Bulien

Inactive User
Not applicable

@mceleavey 

 

I managed to open if now, however, it doesn't seem to work:

MagnusShade_2-1623319669061.png

 

 

MagnusShade_1-1623319621417.png

 

Now every column has the wrong name. 😄 

 

Is this because it's renaming by position and not name? First question should rename Sum to Profit, second Report Date to Date etc.

 

Thank you for your help and patience.

 

mceleavey
17 - Castor
17 - Castor

@Inactive User ,

 

I can't replicate that:

 

mceleavey_0-1623319938107.png

M



Bulien

Inactive User
Not applicable

@mceleavey it seems that the column order gets messed up during the cross-tab. 

This is how they go in:

 

MagnusShade_0-1623320947854.png

after the transpose:

MagnusShade_2-1623321047861.png

(order still correct)

 

and how they come out of the cross tab:

MagnusShade_1-1623320992201.png

 

I'm guessing the order out of the cross tab is just alphabetical (after User ID)? The union then messes them up because the positions are different. So it seems that this won't work, since I can't find an option to un-order the columns?

mceleavey
17 - Castor
17 - Castor

@Inactive User ,

 

try the attached workflow, this should do the trick.

I simply removed the union, and the sample tools and grouped by the user id on the pivots.

That should work.

 

M



Bulien

Inactive User
Not applicable

@mceleavey It works! Thank you so so much! 

mceleavey
17 - Castor
17 - Castor

no problem.gif



Bulien

Inactive User
Not applicable

@mceleavey Oh no wait, I just realized that it all depends on having one column that's distinct and that we know the name of (for the first transpose). Right?

 

Is there a way to do it without knowing any names of the incoming columns? 

mceleavey
17 - Castor
17 - Castor

@Inactive User ,

 

No, I create a new column and group by that. It will be fine for all columns.

 

M.



Bulien

Inactive User
Not applicable

@mceleavey Sorry if that was unclear, I mean that in the first activity, the transpose tool, you transpose it using an existing column. If the input is a different file with a different schema and there is no column called 'User ID', this would not work. Right?

MagnusShade_0-1623327892630.png

 

Labels