Free Trial

Alteryx Designer Desktop Discussions

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

Transform and Reporting Tools - Grouping columns

persevere
5 - Atom

Hi,

Can anyone give me some advice on how I can achieve the following with the Transform and Reporting tools.

Basically I have table A, the output of an Alteryx workflow: it has five columns: Item No, Year, Metric 1, Metric 2 and Metric 3.

I want to use Alteryx to generate an excel workbook with one tab for each Item No.

But I want the three Metric columns grouped by academic year.

I am struggling, at the moment I can see that if I create three cross tabs, one for each metric, then join these, then use a Table tool I can get some of the way. However in reality I have about 15 metrics so wanted to know if there was a better way. Plus doing this way the metric name is lost, when I’d like it displayed above the year in the output (shown as Table B)

Can anyone suggest an effective solution please?

 

In reality have have about 12 metrics, so just wanted to make sure I was following the right path before I do all of these.

 

From(Product of an Altryx workflow)        
A            
             
Item NumberYearMetirc 1Metric 2Metric 3        
120090.50.70.9        
120100.10.20.6        
120110.60.50.2        
120120.90.30.1        
220090.50.41.3        
220100.70.60.8        
220110.90.81.1        
220120.100.9        
320090.30.21        
320100.50.41.2        
320110.40.31.4        
320120.20.10.6        
             
To            
BExported to excel with each tab corresponding to a separate Item number    
             
             
             
 Metric 1   Metric 2   Metric 3   
Item Number20092010201120122009201020112012200920102011 
10.50.10.60.90.70.20.50.30.90.60.2 
20.50.70.90.10.40.60.801.30.81.1 
30.30.50.40.20.20.40.30.111.21.4 

 

 

 

 

 

 

2 REPLIES 2
echuong1
Alteryx Alumni (Retired)

By default, there is not a way to have two rows of headers in your file (metric and year). You can concatenate these together to be one header and easily export that. I used a transpose to get all of the values in one column. I then used a formula to concatenate the metric and year values, and a cross-tab to pivot back.

 

To get each item on a separate tab, I used the bottom configuration in the output tool. It is not necessary to use the reporting tools unless you want a formatted report rather than a data dump.

 

echuong1_0-1611248957119.png

echuong1_1-1611249047324.pngechuong1_2-1611249057761.png

 

 

persevere
5 - Atom

Thanks so much for this awesome reply!

 

 

Labels
Top Solution Authors