Notifications
Clear all
Power Query
2
Posts
1
Users
0
Reactions
475
Views
Topic starter
If appending several pieces of data and then grouping rows, how do you exclude cells with zero (0) from the AVERAGE operation? I've tried replacing the 0 with null but they are still factoring in with the average.
For example, if the data is 10, 20, 0, grouped and averaged should be 15, not 10.
Or, would it be best simply to use MEDIAN instead of AVERAGE?
Posted : 09/02/2021 9:39 pm
Topic starter
I figured this out. The “null” actually works. Initially, I was replacing blank with “null,” not the actual “0” (zero). Putting the “0” instead of a blank cell was then telling the AVERAGE aggregate to ignore that cell. My bad.
Posted : 09/02/2021 10:43 pm