Say that I have a table of values that I want to group based on Quarter, MetricID, and State. In table one, you'll see part of the original table without the grouping. Notice how there is a value missing for Q2 under the Quarter column...
When I group and do the average, as you see in the table below, you'll notice that the grouping still takes an average despite a value missing. Is there a way to get it so that it does not do the average if a value is missing in that particular grouping?
Thanks!
Quarter MetricID State Values Years Q1 A1 TX 2463428 2015 Q1 A1 TX 2460958 2015 Q1 A1 TX 2463293 2015 Q2 A1 TX 2408239 2015 Q2 A1 TX
2015 Q2 A1 TX 2406541 2015 Q3 A1 TX
2015 Q3 A1 TX
2015 Q3 A1 TX
2015 Q4 A1 TX
2015 Q4 A1 TX
2015 Q4 A1 TX
2015
Quarter MetricID STATE AvgOfValues Years Q1 A1 TX 2462559.66666667 2015 Q2 A1 TX 2407390 2015 Q3 A1 TX
2015 Q4 A1 TX
2015