This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
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:
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.
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).
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