Start Free Trial

Alteryx Designer Desktop Discussions

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

Creating Row with 0 rather than no data for row when summarized

hblaiklock
6 - Meteoroid

Hi there,

 

Is there anyway to force the summarise tool to count 0 when there are no items, rather than not including that row.

 

I have a dataset of articles that writers have published. Each writer has a unique ID and publishes various different product types throughout the year. Sometimes a writer will not publish a certain product in a month, but I would like to see that as a 0 when summarised.

 

There are 2000+ writers and 5 product types.

 

See below for a more detailed example

 

Current summary output: 

UniqueIDYearMonthProductCount
31320201A3
31320201C4
44420201

A

2
44420201B7
44420201D4
44420201E5

 

Desired summary output: 

UniqueIDYearMonthProductCount
31320201A3
31320201B0
31320201C4
31320201D0
31320201E0
44420201

A

2
44420201B7
44420201C0
44420201D4
44420201E5

 

Thanks in advance,

Harry

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @hblaiklock 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1603723718019.png

Workflow:

atcodedog05_1-1603723734601.png

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

hblaiklock
6 - Meteoroid

Amazing, thanks so much, works perfectly

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @hblaiklock 

 

Cheers and Happy Analyzing 😀

Labels
Top Solution Authors