Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

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

Greg2186
6 - Meteoroid

I'm trying to create a metrics scorecard combining several data sources to give one overall health score. The issue I'm having is that for several metrics there can be days in which the instance doesn't occur. When this happens I would like my output to show 0 vs an empty row with no data.

 

I've provided a sample of one of the data sources that I'm working through. In this example I have a [Metric Description] named 'Customers Exceeding Max Overage Charge' by which there is no data matching the criteria and when summarized it is not in my output.

 

Does anyone know how to show 'Customers Exceeding Max Overage Charge' when summarized as a 0 value?

 

Thanks in advance

4 REPLIES 4
MSalvage
11 - Bolide

@Greg2186,

 

You could insert a select tool after you have made your Metrics Description field and only select it then unique it so you have a list of your metric descriptions. Then add a field that is all zeros. Once you have a list of all metrics and 0's you can rejoin that back to your data only keeping those from the zeros list that did not join and the join. This would make it so you have all your metrics descriptions in your output. I would have done this with your data, but you did not package the workbook so I could not access the csv.

 

This may not be an ideal solution, but I think it will get you where you want to be.

 

Best,
MSalvage

Greg2186
6 - Meteoroid

@MSalvage

 

Thanks for the response. 

 

I'm a bit confused by your response. I've reattached a packaged workbook, can you show me what you're talking about?

 

Thanks a bunch!

MSalvage
11 - Bolide

@Greg2186,

 

Okay turns out you didn't have a full list of the descriptions in the Data so I just made a text input, should work the same. Workflow attached.

 

Best,

MSalvage

hblaiklock
6 - Meteoroid

Hi there,

 

I have a similar problem but with additional fields - have been mulling over whether there is a similar fix but haven't made much progress. 

 

The problem is slightly more complicated as there are probably +2000 unique IDs.

 

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

Labels