Alteryx Designer Desktop Discussions

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

Is the tile tool the best tool to pivot and aggregate column groups

Sunseeray
7 - Meteor

I have a data set that has a grouping of columns by date for each record. There are 6 dates and 8 columns in each group. I am needing to consolidate the columns by date for each record and am trying the Tile tool but am finding it tricky.

 

Below is the general current and desired data structure.

 

Current Structure            
RecordIDDate1Bucket1Bucket2Bucket3Bucket4Bucket5Bucket6Bucket7Bucket8Date2Bucket1Bucket2Bucket3
1             
2             
3             
4             
5             
              
Desired Structure            
RecordIDDateBucket1Bucket2Bucket3Bucket4Bucket5Bucket6Bucket7Bucket8    
1Date1            
1Date2            
1Date3            
1Date4            
1Date5            
1Date6            
2Date1            
2Date2            
2Date3            
2Date4            
2Date5            
2Date6            
 

Thanks in advance!

 

UPDATE: I did not describe what was in my data and I apologize. All columns, with the exception of the RecordID are numeric values. The purpose of the analysis is to aggregate inputs to each bucket per record from date to date. This would need an additional column for the amount by date.

 

 
Current Structure               
Record ID Amt - Date1 Bucket1Bucket2Bucket3Bucket4Bucket5Bucket6Bucket7Bucket8Amt - Date2Bucket1Bucket2Bucket3Bucket4Bucket5Bucket6
12345           50,000.0020.00-500.0025.000.000.000.000.000.0049545.000.000.000.00500.000.000.00
55555200000.000.000.000.000.000.0015.000.0020015.000.000.000.000.000.0080.00
66666500.00-10.00750.000.000.000.000.000.00790.000.000.000.000.000.000.00
                 
                 
                 
                 
                 
Desired Structure               
Record IDDateAmount by DateBucket1Bucket2Bucket3Bucket4Bucket5Bucket6Bucket7Bucket8      
12345 Amt - Date1 50000.0020.00-500.0025.000.000.000.000.000.00      
12345 Amt - Date2 49545.000.000.000.00500.000.000.000.000.00      
12345 Amt - Date3 50045.000.000.000.000.000.000.000.000.00      
12345 Amt - Date4 0.000.000.000.000.000.000.000.000.00      
12345 Amt - Date5 0.000.000.000.000.000.000.000.000.00      
12345 Amt - Date6 0.000.000.000.000.000.000.000.000.00      
55555 Amt - Date1 20000.000.000.000.000.000.000.0015.000.00      
55555 Amt - Date2 20015.000.000.000.000.000.0080.000.000.00      
55555 Amt - Date3 20095.000.000.000.000.000.000.000.000.00      
55555 Amt - Date4 0.000.000.000.000.000.000.000.000.00      
55555 Amt - Date5 0.000.000.000.000.000.000.000.000.00      
55555 Amt - Date6 0.000.000.000.000.000.000.000.000.00      
66666 Amt - Date1 50.000.00-10.00750.000.000.000.000.000.00      
66666 Amt - Date2 790.000.000.000.000.000.000.000.005000.00      
66666 Amt - Date3 5790.000.000.000.000.000.000.000.000.00      
66666 Amt - Date4 0.000.000.000.000.000.000.000.000.00      
66666 Amt - Date5 0.000.000.000.000.000.000.000.000.00      
66666 Amt - Date6 0.000.000.000.000.000.000.000.000.00      

 

7 REPLIES 7
FinnCharlton
13 - Pulsar

Hi @Sunseeray , I don't think the tile tool is right for the job, you can accomplish the same thing with some multi-rows. Can't upload screenshots at the moment but check out the example workflow attached. Hope this helps!

Sunseeray
7 - Meteor

Thank you @FinnCharlton for responding and providing a better solution!

Sunseeray
7 - Meteor

Hi @FinnCharlton, I needed to update my post. I didn't describe the data well enough. Each of the dates are columns of aggregated values of the previous 8 buckets. This would need an additional column for the value after taking the date from the column name. I included a second example that shows this structure.

ArtApa
Alteryx
Alteryx
Hi @Sunseeray - I've tried to build a dynamic solution for you: 
 

Untitled.jpg

 

 

 

Sunseeray
7 - Meteor

Hi @ArtApa! Thanks so much

ArtApa
Alteryx
Alteryx

@Sunseeray - Is this something that you wanted? Is this a solution? 

Sunseeray
7 - Meteor

Hi @ArtApa, this gets me very close to what I need and I should be able to get it there. Thank you very much!

Labels