Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Cross Matrix

carol_wu
6 - Meteoroid

Dear Masters,

 

I need to create a sales matrix, which have the same row header and column header, the values are # of transactions who purchased row header product category and also purchased column header product category.

I also attached the example for your references.

 

Thanks!

output.JPG

2 REPLIES 2
BenMoss
ACE Emeritus
ACE Emeritus

Hi!

 

There's a few ways this can be achieved. I've created two for you.

 

Option A: Perform a self join on 'VisitKey' then filter out where the category is the same, then perform a cross-tab.

 

Option B: Use the MB-Affinity tool to create the matrix in one step. This seems to be a bit slower though.

 

2018-07-31_16-51-14.png

 

See attached.

 

Ben

carol_wu
6 - Meteoroid

Wow, it worked, thanks!

Labels
Top Solution Authors