Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

How to combine some rows of single column as a single cell..

dizy_11
7 - Meteor

Hi all,

 

I'm stuck at a point with these data. I don't know if we can do this in Alteryx or not.

 

So I have a table like this.

FurnitureLengthWidthCost
Table1m0.5m500
Table3m1m1500
Blackboard4m1.5m1000
Blackboard5m2m1500

 

Now i want data in furniture column to get merged as a single cell for their common rows like this:

 

Deeksha1997_0-1625236768390.png

 

 


Can anyone please tell me solution for this if there is any. 

Thanks in advance!

7 REPLIES 7
john_watkins
11 - Bolide

I am not sure about an actual "merge" of the cells since Alteryx treats data in tables as rows/columns.  You may get away with it if building a pivot table from within the reporting group of Alteryx.   The easy way to make it look that way is to create a second column for Furniture2 and a row counter (running total) grouped on Furniture.   Then just make all occurrences of Furniture2 blank when rowid <> 1.  

 

I don't tend to use Alteryx for output/display or trying to make stuff look like Excel as much because the payoff isn't worth the time in my opinion.  That is where we do that part in Tableau at our shop.  It all depends.

apathetichell
19 - Altair

 

This is doable - you'll need three table tools - the first able tool joins fields 2-4 and the second table tool is just for your first column. Then there is some playing around to get them to merge - and a third table tool to get the table borders down.

 

The hard part is playing with the options on the second table to get them to be the size that you want to match the first table... I'll take a look at it and see what I can do.

danilang
19 - Altair
19 - Altair

Hi @dizy_11 

 

No, not in Alteryx. All data objects in Alteryx are the equivalent of M x N matrices, where all rows must have M columns and all columns must have N values.  To get what you're looking for, you'll have to output to a display program or create a set of table objects and get them to line up using the reporting tools.  The latter is possible, though finicky, when merging columns, but I've never seen a successful row merge before.  I stand corrected.  Excellent work @atcodedog05  

 

Dan

atcodedog05
22 - Nova
22 - Nova

Hi @dizy_11 

 

@apathetichell approach was in the right direction. Here is how you can do it.

 

Workflow:

atcodedog05_0-1625247576630.png

1. In the first table tool I am using groupby on Furniture(merge cell column) so that they are present outside the table. Note make sure you disable show headings.

2. In the second table tool I am sending the Furniture column and rows associated with it. This creates the merged cell. Note make sure you disable show headings.

3. In the third table tool we will add the header on top of it using union.

 

Output:

atcodedog05_1-1625247813473.png

 

This approach is a bit like playing Tetris you need to align the blocks.

 

Hope this helps 🙂

 

apathetichell
19 - Altair

@atcodedog05great job!

Ar13f
10 - Fireball

Dear @atcodedog05 and members,

 

Finally, I found this article.... thanks to @atcodedog05 ..

I'd want to request permission to bookmark it.

atcodedog05
22 - Nova
22 - Nova

Hi @Ar13f 

 

You don't need any permission, go ahead feel free to bookmark it 🙂. We all do it, bookmark helpful posts for reference 😅.

Labels