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

Adding multiple rows in between existing tables

rrohan90
5 - Atom

Hi Guys, my current table is something like this: 

rrohan90_0-1618854154965.png

 

And I want my output to be something like this...

rrohan90_1-1618854201682.png

Basically I wanted to keep year and month data consistent for all the categories, and add a dummy/blank row with category name so that I can do further calculations on the data e.g. moving average etc.

 

Please let me know how I can do it.

 

Cheers,

Rohan

 

2 REPLIES 2
RaviP
8 - Asteroid

Hi @rrohan90, you could a crosstab and transpose and replace the null values with 0.

 

In the crosstab, have Month in 'Change Column Header' and Count in 'Values for New Columns'.

Then, in the transpose, you'll see all the months. Select Country, Cat and Year in 'Key Columns', and select the months in 'Data Columns'.

You can then replace the null values with 0

Hope this helps.

 

 

I just made a dummy data

RaviP_0-1618906344665.png

 

rrohan90
5 - Atom

Thanks @RaviP It really helps! Would be great if you can share the workflow too.

Labels
Top Solution Authors