IsEmpty( [Measures].[] ),

null,

iif(

Count(

NonEmpty(

[].[].CurrentMember.Siblings,

[Measures].[]

)

) = 0,

null,

Sum(

[].[].CurrentMember.Siblings,

[Measures].[]

)

/

Count(

NonEmpty(

[].[].CurrentMember.Siblings,

[Measures].[]

)

)

)

)

Numbers ]]>

Thanks

]]>Cheers!! ]]>

Great article, looks like something i am looking for.

But just can’t get it working. The screenshots in youre article dissappeared http 404 error. Maybe there is some thing I missed. Can you fix the screenshots..

Andrew

]]>I tried your solution and I almost got it working, but not quite.

I followed your solution and I guess that I’m doing something wrong somewhere along the way, but I can’t figure out what.

I’m trying to get an employee count by length of of employment, discretized by the above mentioned solution, but all I get is a value for the ‘All’-member of my buckets.

When I use the following statement:

“SELECT

[Measures].[Employee – Count] ON COLUMNS

, [Length Of Employment].[Length Of Employment].MEMBERS ON ROWS

FROM [myCube]”

, the result I get is the following:

Employee – Count

All 66

0Y – <2Y (null)

2Y – <4Y (null)

4Y – <6Y (null)

6Y – <8Y (null)

8Y – <10Y (null)

+10Y (null)

N/A (null)

I placed the calculated member and the scope script immediately after the CALCULATE as mentioned above, but apparently it doesn't to the aggregation as I expect.

I would expect a result like the following:

Employee – Count

All 66

0Y – <2Y 15

2Y – <4Y 20

4Y – <6Y 15

6Y – <8Y 10

8Y – <10Y 5

+10Y 1

N/A (null)

Can you share your thoughts on what I might be doing wrong?

Thanks,

Thomas