Alteryx Designer Desktop Discussions

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

Merge data in fields

Elmin
6 - Meteoroid

Hi all!

 

I have a difficulties with merging data in fields for certain rows, however the case is a little bit different, so I couldn't find appropriate solution for it so far.

 

I need to merge the sum of the data for all shops so it shows as in outcome demonstrated. (The last field is just sum column for example).

 

Thanks everyone for your reply!!!

 

So the data I have:

 

PL LineShop 1Shop 2Shop 3Totals for lines 13-33
13 Franchise Costs3,566003,566
14 Brand Management Costs1,756001,756
15 Pre Operating Expenses0000
16 Other Income Expense0000
17 Total Brand Contribution24,592-7,887-2,85113,854
18 Cross Brand Management overheads0000
21 Total Retail Profit before support overheads24,592-7,887-2,85113,854
22 Supply Chain overheads3,266003,266
23 Total Retail Support Function overheads20,4250020,425
24 Total Retail Profit after all Retail overheads901-7,887-2,851-9,837

 

The outcome should be:

 

Elmin_0-1626732261448.png

 

 

I wondered whether that even possible in Alteryx?

8 REPLIES 8
Qiu
20 - Arcturus
20 - Arcturus

@Elmin 

Maybe you can do something like this. It is also dynamic for more columns in case.

Capture1A.PNG

Elmin
6 - Meteoroid

Dear Qiu,

 

Thanks for your reply, I appreciate it.

However I didn't have difficulties with summarizing the values in data related to the fields.

 

The thing I need is the table structure to be shown as presented in outcome screenshot.

 

Thank you!

Qiu
20 - Arcturus
20 - Arcturus

@Elmin 
I am sorry for the misunderstanding.

Do you accept output data to a pre-defined templated?

By which, we can have the structure as you need with the option "Preserve Format".

apathetichell
18 - Pollux

My brain is a bit fried and there are probably much better/faster ways to get you here but this should do what you want... you'll need to render the output which will overwrite any existing sheets.

Elmin
6 - Meteoroid

@apathetichell

 

Dear, thanks for response, this solution looks like a proper one, but the obstacle is that there are to be 3 separate fields for [Shop 1], [Shop 2], [Shop 3], but with common merged value as in [TOTALS] field. In xlsx it should look like as below:

 

Elmin_0-1626763567082.png

 

Elmin
6 - Meteoroid

Yes, I need the format of the table exactly as on screenshot below:

 

Elmin_0-1626763730096.png

 

It needs to have 3 separate fields for each shop, but for lines indicated in the table they need to have common merged and shared values for all three fields.

atcodedog05
22 - Nova
22 - Nova

Hi @Elmin 

 

You can achieve this using merge cells. Sadly its not very straightforward. You need to build different blocks and align as required.

 

Workflow:

atcodedog05_0-1626768149092.png

Output:

atcodedog05_2-1626768210847.png

 

Hope this helps : )

Elmin
6 - Meteoroid

Thanks! This works out!

Labels