Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Engine Works

Under the hood of Alteryx: tips, tricks and how-tos.
atcodedog05
22 - Nova
22 - Nova

Quick recap: we have completed Part 1 and Part 2 from below. We will be looking at Part 3 in this blog.

 

1. How to Create an Alteryx Report with Merged Rows

 

atcodedog05_0-1660071145900.png

 

2. How to Create an Alteryx Report with Merged Columns

 

atcodedog05_1-1660071145933.png

 

3. How to Create an Alteryx Report with Both Merged Rows and Merged Columns (you are here)

 

atcodedog05_2-1660071146009.png

 

So you have finally decided to create a report with both merged row cells and merged column cells! Brave.

 

atcodedog05_3-1660071146030.jpeg

Source: Pinterest

 

We would highly advise you to go through Part 1 & Part 2 and try to tackle creating this report with both merged row cells and merged column cells by yourself. You will learn a lot about “why do this step?” when you are experimenting and trying to create it by yourself. Use this blog only as a backup option to compare approaches or if you are stuck.

 

atcodedog05_4-1660071146043.jpeg

Source: Pinterest

 

So take a shot, and don’t miss out on the great opportunity to experiment and learn more about how this works.

 

Cool, here is how we would approach it. Let’s get to it!

 

Source: GIPHY

 

How to create an Alteryx report with both merged row cells and merged columns cells

 

Prepare the data in the desired format with all the required columns you wish to see in your output. Refer to the example below.

 

atcodedog05_6-1660071147550.png

 

Now let's start by converting the data into the desired report first.

 

Step 1: Create the merged column header logic

 

Refer to Part 2 of this series. We will begin with creating the same exact logic.

 

atcodedog05_7-1660071147572.png

 

Step 2: Create the merged row cells logic for the required columns

 

Here I want to create row merge cells under a blank column merge header. Hence, I will apply the row merged cells logic for only those columns.

 

atcodedog05_8-1660071147622.png

 

Refer to Part 1 of this series. We will begin with creating the same exact logic for the selected columns. After implementing the logic, it should look something like the image below.

 

atcodedog05_9-1660071147650.png

 

The only change, as you can observe, is the extra table tool. We need it because we need to maintain the same number of rows from each branch, and the expected number of rows was one. Hence we have used the table to merge multiple rows into one row.

 

atcodedog05_10-1660071147740.png

 

Step 3: Create a method to pass the merged column header name

 

Create a Text Input tool with the merged column header name for each header like below:

 

atcodedog05_11-1660071147762.png

 

atcodedog05_12-1660071147893.png

 

Insert a Layout tool with the default configuration to merge tables in separate columns into a single table like below. The current configuration behavior is to merge columns horizontally.

 

atcodedog05_13-1660071147935.png

 

Step 4: Excel & Other Format Outputs

 

The setup is the same as in Part 1 and Part 2. You can refer to them for more clarity.

 

Excel report output:

 

atcodedog05_14-1660071147941.png

 

atcodedog05_15-1660071147945.png

 

You might be asking us, “Hey, what if I want to have merged row cells under merged columns cells?”

 

You might already unconsciously know the answer.

 

Here is a hint:

 

atcodedog05_16-1660071147951.png

 

This is like playing Tetris to find the best way to combine.

 

atcodedog05_17-1660071147953.png

Source:Wikipedia

 

We hope this was helpful!

 

We highly encourage you to go and experiment so that you can better understand why we are following this approach.

 

Awesome! You just learned a cool approach which will be really handy. Cheers and Happy Analyzing :-)

 

Source: GIPHY

 

Feel free to reply to this post and hit us up with your queries if you are facing any issues or need any clarifications. We shall be happy to help :D

Comments