Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

How to make a tool like field summary but with custom tests?

Hugo
9 - Comet

Hello,

 

I'm trying to make a macro that will allow me to do some tests of data quality on a file that is read into it. Somewhat like the Field Summary tool, but I want to be able to specify the tests myself. For example, I want to count the number of blanks, and also the number of zeroes in an input data. If the data looks like this:

InputInput

I'd want the output to look like this

 

OutputOutput

I assume I'd have to build a macro for this, but I can't work out how to loop over an uncertain number of input fields  Any help would be much appreciated

 

 

2 REPLIES 2
jdunkerley79
ACE Emeritus
ACE Emeritus

Hi @Hugo,

 

You can do this by using the field info tool to separate fields into each value type and transposing the data so you can process it.

 

I have put a very simple demo macro together to show what I mean.

 

Hopefully enough to get you started.

 

James

Hugo
9 - Comet

Hi @dunkerly79,

 

Thanks! The transpose followed by splitting out the different field types was the key.

Labels