Re: calculation the median
- From: "florian" <florian.stammer@xxxxxxxxx>
- Date: 15 Jan 2007 06:00:00 -0800
Hi,
I'd like to add an example to my question:
I added this as a new Measure in the Calculation window of the Cube:
Median ([Surgery].[KT DURATION].Members)
as a result I get #value! (infinite recursion detected. The loop of
dependencies is Median KT Duration --> Median KT Duration.)
My second approach was to this in the calculation windows: Median
([Measures].[KT DURATION]) and define a new Measure in the Cube window
using NONE as the aggregate function. Unfortunately now when using the
calculated Median the field is empty.
------------
[Surgery].[KT DURATION] --- is a column in the Surgery Dimension which
is a double.
--------------
Any ideas?
florian schrieb:
hi,
I'd like to calculate the Median within a cube in SQL Server 2005.
I have a duration and the number of occurances --> so it was not
difficult to calculate the average but now I got stuck because I'd like
to calculate the median too.
I just found the following formula - Median(Set_Expression [
,Numeric_Expression ] ) but I don't know how to use it.
Thanks for your help!
.
- Follow-Ups:
- Re: calculation the median
- From: Deepak Puri
- Re: calculation the median
- References:
- calculation the median
- From: florian
- calculation the median
- Prev by Date: Re: Newbie MDX Question - How do I "freeze" or lock a value?
- Next by Date: Re: Measures from multiple fact tables
- Previous by thread: calculation the median
- Next by thread: Re: calculation the median
- Index(es):
Relevant Pages
|