Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

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
19 - Altair

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