Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Summarize by columns

shmeyers
5 - Atom

Hello! I'm fairly new to Alteryx and tried to use the search feature, but struggled to find anything relevant to the issue I'm currently facing. 

 

I have a data set that shows daily data for a list of companies over the course of 5+ years. As an example, see the following:

Company2014-06-012014-06-02...2021-06-01
Company A100130...250
Company B7040...10
Company C90100...200

 

I'd like to summarize this data by year for each column such that the end output looks like this:

 

Company20142015...2021
Company Asum(values for 2014)sum(values for 2015)...sum(values for 2021)
Company Bsum(values for 2014)sum(values for 2015)...sum(values for 2021)
Company Csum(values for 2014)sum(values for 2015)...sum(values for 2021)

 

My hunch is that some combination of transposing the data, using a trimleft(), and then joining the data back would help me get closer to a solution, but I'm struggling to figure it out complete. Any advice would be greatly appreciated. Thank you!

 

2 REPLIES 2
apathetichell
20 - Arcturus

transpose

column A Key column.

summarize value group by name

 

crosstab

column a/company key column.

name becomes columns

sums become values.

 

See the attached workflow...

Qiu
21 - Polaris
21 - Polaris

@shmeyers 
This would be the good fit for Transpose and Cross Tab.

Capture5A.PNG

Labels
Top Solution Authors