Free Trial

Alteryx Designer Desktop Discussions

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

Creating Pivots with CrossTab + Summary Tool

Maithre
5 - Atom

Hi,

 

My Input to the cross tab changes every week, and hence the column headers can also change week on week depending on the incoming data. The problem is I am trying to create a total summary after the cross tab. Since the column headers keep changing, how to automatically update the columns to summarize in the summary tool without any manual intervention.

 

Thanks!

3 REPLIES 3
afv2688
16 - Nebula
16 - Nebula

Hello @Maithre ,

 

The cross tab tool offers yo a variety of calculations which are already on the summarize tool (Sum, average, concatenate, etc.)

 

What are you trying to do? This would be useful to help you.

 

Regards

Maithre
5 - Atom

Sure!

 

This is what my input data looks like

 

RecordIDReport DateReview Status
113/09/2020Out of Scope
213/09/2020Out of Scope
313/09/2020Out of Scope
405/10/2020Out of Scope
505/10/2020Out of Scope
612/10/2020Fail
712/10/2020Out of Scope
812/10/2020Out of Scope
919/10/2020Pass
1019/10/2020Pass
1119/10/2020Out of Scope
1219/02/2021Pending Review

 

This is my desired output:

Report DateCountWithNulls__Null_CountWithNulls_FailCountWithNulls_Out_of_ScopeCountWithNulls_PassCountWithNulls_Pending_ReviewTotal
13/09/2020 16  7
05/10/2020 10112 23
12/10/2020 18  9
19/10/2020 152 8
26/10/2020 251 8
Total340131431218

 

 

And I have used a cross tab + Summarize tool to do this.

 

In the Cross Tab , I have used the Review Status as column headers. And then in the Summary tool, I calculate sum of these columns and create a Totals Row. then union both my summarize and cross tab outputs.

 

The problem is the Review status data pretty much keeps changing.. Since I am fixing the columns (for the ones whose sum is to be calculated) in the summary tool, I run into errors when the previously existing column header is not available

 

 

Any other workaround to create such a pivot would be much appreciated.

afv2688
16 - Nebula
16 - Nebula

Hello @Maithre ,

 

How about doing it the other way? First the summarize and then the crosstab like in this example?

 

Regards

Labels
Top Solution Authors