Solved! Go to Solution.
For me personally, since the Summarize Tool has no "average - ignore nulls", I update the nulls to zero before the Summarize Tool (then you can use the "average - ignore zeros") using either the Formula Tool or the Multi-Field Formula Tool (depending on how many fields I'm updating).
For the formula itself, if you use "ToNumber([FieldName])" just like that, and the field is numeric, then it will fill the nulls with zeros. Or, depending on my need, I may filter out the non-nulls and then use the Summarize Tool with just those non-nulls.
Apparently fall is the time to try to take averages inclusive of null values. AdamR's solution works for single fields, but if you want to take an average across multiple fields you need to first transpose the data, then summarize, then merge back in -- a pain. SPSS has a simple mean.x function that allows you to specify the maximum number of missing values that will allow it to return an average without error. Would love a similar functionality in Alteryx.
Maybe you can post this as an idea on the ideas board? Maybe with some guidance, you and I could create a macro for the community to benefit from. I'd be happy to work with you on it.
User | Count |
---|---|
19 | |
14 | |
13 | |
9 | |
8 |