![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi Sorry if this is a simple question, I'm pretty new at this. I'm creating a cube to use to store results of a survey we have just conducted. I've built dimensions for all the answers and it's working great so far. Each answer is a number between 1 and 5, we now want to ask questions such as "What was the average answer for Question 1", or "What was the average answer broken down my CITY". I have a measure which currently just totals up the answers and doesn't really mean anything, can I create a calculate member to do what I need? Thanks |
#3
| |||
| |||
|
|
To compute a weighted average you pretty much have to add your weighting calculations to the fact table, then divide by RowCount as above. HTH Jim OK, brain fade, you don't of course divide the weighted value by RowCount, |
#4
| |||
| |||
|
|
To compute a weighted average you pretty much have to add your weighting calculations to the fact table, then divide by RowCount as above. HTH Jim OK, brain fade, you don't of course divide the weighted value by RowCount, but by the total of your weightings. A weighted average price, for example, is P*V as a base measure in teh fact table divided by V as another base measure. Of course, check for V <>0. This does sum(P*V) / Sum(V) at any slicing. iif(Volume<>0, Revenue/volume, Null) |
![]() |
| Thread Tools | |
| Display Modes | |
| |