![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am analyzing the data of a survey. I have data of respondents and a weight factor for each respondent. For the measure of unweighted respondents I can use an aggrate function "distinct count". To calculate the weighted number of respondents, I 'll need an aggrate function "distinct sum" but Analysis server doesn't support the "distinct sum" function. RespId dim1 dim2 ... dim(n) weight measure1 ... measure(m) 234 . . . 0.62 . . 234 . . . 0.62 . . 768 . . . 0.45 . . 834 . . . 1.36 . . 834 . . . 1.36 . . unweighted #respondents = 3 ( respId's {234, 768, 834} *no duplicates*) weighted #respondents = 0.62 + 0.45 + 1.36 = 2.43 ( sum of weight for {234, 768, 834} ) Is there a solution (not depending on the other dimensions) for the unweighted #respondents measure? Beer |
![]() |
| Thread Tools | |
| Display Modes | |
| |