strippy
i know this question has been around for some time, and have read most of the answers, but well still looking at how to do this in standard edition of sql 2005.
to what i understand Average of children calculates the average not on the lowest level but on the next one (i.e. it sums the values on daily basis but it calculates an average on weekly or monthly basis).
my problem was that i needed to calculate an adjusted price base on the next formula:
i.e.
price hotel 1 - H1
price hotel 2 - H2
price hotel 3 - H3
capacity hotel 1 - C1
capacity hotel 2 - C2
capacity hotel 3 - C3
((H1*C1)+(H2*C2)+(H3*C3))/(C1+C2+C3)
now i used averageofchildren to define measure (price of hotel*capacity of hotel) and measure (capacity of hotel) and created calculated member based on the above formula.
with the use of averageofchildren i get the wanted result. but if i use avg()/count() i get also average of those 3 hotels on the level of day.
now could someone please help me to write a calculated measure or mdx expression that would not use averageofchildren.
i have defined sum measure (price of hotel*capacity of hotel) and sum measure (capacity of hotel).
i have defined dimTime.
is there a way to do this
i hope you all understand my question...
thanx in advance