In AS2005 how i make a measure with tha aggregate function avg?
Thanks
Try using AverageOfChildren aggegate function and see if it works for you.
Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
i have tried the AverageOfChildre but i get an error because i'm using the standar edition...
I can't believe there is an easy way to get an avg measure :(
|||
One easy way I have found to get and average is to create a grain count measure and then sum up the measure you would like to average and then create a calculated member that takes the sum of the measure and then divides by the grain count.
HTH
Mark
http://mgarner.wordpress.com
|||I create a measure SumNumber with the sum of the field, and another measure CountNumber with the count of the field. Then i create a calculated member like this:
In the expression i write: SumNumber/CountNumber and i get an error what i am doing wrong?
|||
I am new using AS2005, i don't know how to make a calculated member.. what i am doing is making a new named calculation... is the same thing?
|||
Javier,
To create a new calculated member, go to the calculations tab in your cube in BI Studio and then do one of two things, click on the "New Calculated Member" button on the tool bar. It looks like a calculator - or you can go to the menu and select "Cube", "New Calculated Member".
Once you have done that, you should put the name at the top in the box labeled "Name". (Average). Then in the "Expression" box, put the calculation. What you have looks correct, although it would probably throw an error if you divide by 0.
I would suggest getting your cube created w/o the calculated member and then pull both of your measures (count and sum) on to a pivot table and make sure they look ok and that the count won't be 0.
HTH
Mark
http://mgarner.wordpress.com
|||Thanks!!! now.. i can have a calculated member in a column of the drilldown?
No comments:
Post a Comment