Dear all,
I have an excel file which contains the information of a restaurant orders, what I'm looking for is to group each order with a unique row to make it easier to be observed. Below I attached the picture of the input file which will be as input in the work flow:
And here is the output file which I made it manually and I'm looking to be done by alteryx.
Any idea on how it can be done or any help in that please?
I also attached the excel files.
Thanks in advance for your kind support .
Solved! Go to Solution.
You can do this with the Summarize tool. You can Group by, Sum by and Concatenate by. Give it a try and let me know if you need further assistance.
Thanks,
Seth
Hey @smoskowitz,
tried to do that but I don't have the choice of Concatenate by, I tried by order number I grouped by and sum by but I don't have the Concatenate by choice. Could you please give me more details on which fields I have to to do that?
Hi @Feras95p
In order to view the option to Concatenate by a certain field, you will need to ensure that that field is a string data type. If so, your configuration of the summarize tool will look something like this:
Hi @DannyS , unfortunately it doesn't give me the desired output as shown n the pictures attached below:-
HI @Feras95p
I would go ahead and look at the example workflow attached above ^^^ by @smoskowitz to get you on the right track. This example workflow will not mimic the exact "merge cells" format like in Excel, but you can concatenate the records several ways. The example from @smoskowitz shows the "," separator but her is a list of things you can do to customize the concatenation process:
The start, separator and end elements must be specified for each field an action is being applied to. You can enter any character or string, or leave them blank. Supported escape characters include: \n (new line), \t (tab), \r (carriage return), and \s (white space character).
You can also rename the columns to your liking within the Summarize tool under the "Output Field Name" column for consistency.
One other thing I would mention is that it looks like some record values within your columns may contain misspellings or slight variations (e.g. Orajah vs Orijah and South 1 vs South1). I would suggest either using the replace function with the Formula tool or looking into the Fuzzy Match tool to clean up those slight variations. This link will give you an example of configuring the tool: https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Tool-Mastery-Fuzzy-Match/ta-p/45485
I've attached a workflow similar to the above, but with that added formula tool and different separator option.
*UPDATE*
There is actually a similar discussion thread related to merging cells: https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Merging-cells-with-the-Table-Tool/t...
The above article will show you how you can use the Table tool within the Reporting palette to merge cells, similar to Excel. Hope this is helpful!
User | Count |
---|---|
19 | |
15 | |
15 | |
9 | |
8 |