Attached is the data set in its initial form. I would like to restructure the data set into just a few columns with the most critical information (Sales Q, Sales per item, COGS, Inventory) in 1 column each and no longer repeating.
As you can see, Rows 1-3 contain the contextual information for the data columns. I need the information in the first three rows (specifically, City, Store Location, and Product) but I need them to be their own columns. But, I am having trouble converting them into columns because they sit right on top of rest of the data.
Thus , I would like to have the final output have the columns:
- City
- Estimated ship date (Column C)
- Store Location
- Product
- Sales Q.
- $ per item
- COGS
- Inventory
Please let me know if you can help.
Thanks!
Any chance you can share the excel? There's a lot there to retype manually to help you.
Well, I would like to do the "restructuring" in Alteryx. Reformatting is my use case.
@shelbybradley Understood, but we cannot use a screenshot as an input. This is definitely possible but trying to avoid retyping your screenshot to show you how. Take a look at the below thread that is a similar issue.
Here's an example of this:
Hi @Luke_C
Thank you - I have a few follow up questions...
1. What are you doing exactly with the Multi-Row formula tool (in this particular case)?
2. How does the Make Columns tool work?
3. What is the Tile tool doing?
Thank you!
I ran into another issue...
I have another data set that has many more rows of data than the previous one (same exact format). Eventually, Alteryx begins naming the duplicate columns Sales Quantity9_2, COGS9_2, Inventory9_2, etc...... Is there a way to alter the formula tool which calculates ID to adapt to the change is formatting?
The problem I am running into is that the ID formula:
ID =
if isinteger(right([Name],1))
then tonumber(Right([Name], 1))
else 1
endif
does not work for those columns ending in COGS9_5. As an example, the resulting column name becomes COGS9_ instead of COGS, and the ID number becomes 5, which is inaccurate.
I have attached another excel with more columns if that helps.
Thanks,
Shelby
User | Count |
---|---|
19 | |
14 | |
13 | |
9 | |
8 |