Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

Average calculation excluding zeros and Nulls

lokeshramamurthy
6 - Meteoroid

Hi,

 

I am trying to replicate "iferror Average" in alteryx but i am not able to get the accurate numbers Wtd Selling Dist (Avg). 

Attaching an sample data for reference. Kindly help in building an module for the same.

 

Kind Regards,

Lokesh

 

1 REPLY 1
jdunkerley79
ACE Emeritus
ACE Emeritus

Looking at the data you sent, I think:

 

2018-11-02_13-08-50.png

 

1. Rename columns based on the first line

2. Add a record ID (row number)

3. Transpose the data

4. Filter the nulls

5. Compute an average grouped by record ID

 

You could then join back by record ID if needed.

Labels