Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
We’re experiencing technical issues with our vendor that are affecting license activations for Designer Desktop. We don’t yet have an estimated resolution time. We apologize for the inconvenience and will share updates as we have them.
Start Free Trial

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
Top Solution Authors