Dear community,
I have the following situation and I have not found any solution to this yet.
I currently have the following table:
And after the Alteryx workflow I would like to have the following table:
Does anyone know how to create the workflow for this? Thank you very much!!
Solved! Go to Solution.
Hi @Deron__ ,
Please find attached the screenshot and Workflow for your reference. I hope it helps.
Thank you for your prompt reply!
Sorry, I believe I had to write the table differently. The product columns are not necessarily unique (so not necessarily type 1, type 2 and type 3 etc in the columns). Rather this is how I could have my dataset (see below). As you can see there is no unique ID for each column, the columns could be exacty the same (so every record is Type 1, every record has discount rate of 1.0% and every record as years of 10), which is not a problem for the purpose of my analysis but all I want is that the product, discount and years old are the column names and everything else falls under that. See below what I mean:
And it should become:
Thank you so much!
Could you provide the input as a spreadsheet or text input? I think that the column tables should be unique. Alteryx data will enforce this - columns need to have unique names. But if you provide the input in any format you like, I can have a look.
Hey @Deron__ . No problem.
So the fields do indeed get renamed when you import the spreadsheet.
See attached a very similar solution to before. I've used the Tile Tool and Dynamic Rename to keep the columns headers as they should be (otherwise punctuation and spaces get converted to underscores). Take a look at the attached...I think it works (you may need to reconnect the input file).
You're welcome.
Yes, your solution is totally valid also. I guess the only downside is that there are some rather unattractive underscores in your column names. You could just rename them with your select tool, but that would be less dynamic (i.e. not update if the field names changed in the input file). The plus side is, as you say, that it is simpler of course!
I think you can go ahead and set both of our solutions as accepted 😉😉