Ch.3 Lab - $group and Accumulators

Hi so filtering the oscars was no problem but im having issue calculating the the avg, hi, low, deviation.
when I used the imdb rating it was close but not quite so i figured needs to be standardized but I don’t know how you get the x-min, x-max values like the prvious example.

I figured it out. My issue was I was using this

Blockquote
numOscars: {
$cond: [{$gt:["$oscarRewardsAsNum", 0]}, “$oscarRewardsAsNum”, 0]
}

as my groups id generating groups based on the number of oscars they had instead of all of them who qualify in a single calculation.