Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Need Average Aggregation, but exclude 0s

$
0
0

I just built my first cube.  Yeah!!!

The cube is based on helpdesk tickets.  Every fifth ticket a Survey questionaire is sent to the customer and they may or may not respond.  So if I look at a helpdesk group, most survey scores are 0 because they did not take survey.  So if I drill into a group I would see a table (TicketNum, Score) something like this

Ticket1, 4

Ticket2, 0

Ticket3, 0

Ticket4,3

Ticket5,0

Ticket6,0

First off, for my measure, when I set the AggregateFunction to AverageOfChildren I am getting a different number than if I have the scores in the drillthrough using the Avg Excel function.

Second, I would like to exclude the scores of 0 when I obtain my average, so for the data above my average would be 3.5 (7/2) not

1.1667 (7/6).

Could anyone give me some hints as how to configure this?

Thanks,

Mike



Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>