We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Combining Data by Number Identifier

huntertussey
5 - Atom

Hello, 

 

I'm trying to combine data for customers but have been unable to find a way to do so. I have unioned data from different months and want to combine the monthly data for each customer. In Table 1 is example of what data looks like coming in, and Table 2 is what the end result should look like.

 

Table 1

Customer NumberJuneJulyAugust
123YNullNull
456NNullNull
123NullYNull
456NullYNull
123NullNullY
456NullNullN

 

Table 2

Customer NumberJuneJulyAugust
123YYY
456NYN

 

Any help is appreciated, thanks!

2 REPLIES 2
alexnajm
18 - Pollux
18 - Pollux

Transpose the data (group on Customer Number and select the rest as data fields), Filter out the null values, and Crosstab back (group by customer Number, header is Name and value is Value, concat or first should work to aggregate)!

huntertussey
5 - Atom

Thank you, worked perfectly!

Labels
Top Solution Authors