Hi,
I'm trying to calculate a standard deviation using the MDX function. It doesn't work, so I practice with avg function, it's suppose to be simpler....
Let's suppose I have 3 dimensions: time, contaminants and age.
I want the average calculated while user select different members.
The Measure I use is "Quantity". In analysis Services the aggregate function defined for this measure is "Sum". Here is my syntax.
Avg({([Time].currentmember,[Age].currentmember,[Contaminants].currentmember)},[Measures].[Quantity])
The result (the average) is always equal to the aggregate of [Measures].[Quantity]. It seems that this function does not use all the values but only the aggregated value. And it divides by one since it uses only one value.
How can I make this function uses all the values instead of the sum of them?
English is not my primary language so I hope it is clear enough....
thanks! stetou
I'm trying to calculate a standard deviation using the MDX function. It doesn't work, so I practice with avg function, it's suppose to be simpler....
Let's suppose I have 3 dimensions: time, contaminants and age.
I want the average calculated while user select different members.
The Measure I use is "Quantity". In analysis Services the aggregate function defined for this measure is "Sum". Here is my syntax.
Avg({([Time].currentmember,[Age].currentmember,[Contaminants].currentmember)},[Measures].[Quantity])
The result (the average) is always equal to the aggregate of [Measures].[Quantity]. It seems that this function does not use all the values but only the aggregated value. And it divides by one since it uses only one value.
How can I make this function uses all the values instead of the sum of them?
English is not my primary language so I hope it is clear enough....
thanks! stetou