Aggregation functions in Calculated Measures displays wrong values.

Unanswered Aggregation functions in Calculated Measures displays wrong values.

  • Monday, July 17, 2006 10:39 AM
     
     

    Hi,

    I think this calculated measure implementation is making me absent minded, so if this seems like a silly question, please ignore my behaviour but do answer to my post :-)

    I will ask this question with a sample data: consider that the cube consists of School Children's names as the first dimension (school_children) and date(jan, feb....) as the second dimension. the measure (M) is the 'exam scores' of the school children.

                             jan  feb mar
    school_children    M   M    M
    ----------------------- 
    tony                    50  20   40 
    bony                  10   40   40   
    mony                 60   60   70

    Now when i add a calculated measure where I want to display the avg marks of each. so in the calculated measures formula I add:  Avg([Measures].[M]).  (This is how it is in the Oracle OLAP :-))

    But this does not display the average of all tony's scores in a new column M2 (calculated measure). it just displays the same values as the measure M.

    so what is happening here? how to get the average then? I do not want to use an avg Aggregation.  I thought that I would probably have to programmatically convert all avg functions to something like this:  [Measures].[M] / count([Measure].[M]=tony or soemthing like this. not sure again.

All Replies