Questions about aggregation
Posted: Thu Dec 01, 2011 1:35 pm
Hello,
I have a cube with multiple dimensions ('Time', 'Measures', and others) and for specific measures I want to consolidate to average (instead of sum) on all dimensions except 'time'. For example, my 'clients' dimension has 3 levels - country > city > klient; my time dimension has 2 levels - year > month.
I want to see averaged countries and cities for each month, but sum of all months in year level. I have achieved this by creating "normal" average and using ConsolidateChildren to calculate year: ['2011'] = ConsolidateChildren('Time'); Is this the most effective way (considering simplicity of rules and performance)?
My second question is about calculating averages. Right now, each measure i'm averaging needs two aditional measures:
['counter'] = N: abs(sign(['measure to be averaged'] ));
['averaged measure'] = N: ['measure to be averaged']; C: ['measure to be averaged'] \ ['counter'];
Since I need to average ~20 measures, I'm afraid that adding 40 additional measures will affect my performance. Is there a more efficient way to calculate averages?
I have a cube with multiple dimensions ('Time', 'Measures', and others) and for specific measures I want to consolidate to average (instead of sum) on all dimensions except 'time'. For example, my 'clients' dimension has 3 levels - country > city > klient; my time dimension has 2 levels - year > month.
I want to see averaged countries and cities for each month, but sum of all months in year level. I have achieved this by creating "normal" average and using ConsolidateChildren to calculate year: ['2011'] = ConsolidateChildren('Time'); Is this the most effective way (considering simplicity of rules and performance)?
My second question is about calculating averages. Right now, each measure i'm averaging needs two aditional measures:
['counter'] = N: abs(sign(['measure to be averaged'] ));
['averaged measure'] = N: ['measure to be averaged']; C: ['measure to be averaged'] \ ['counter'];
Since I need to average ~20 measures, I'm afraid that adding 40 additional measures will affect my performance. Is there a more efficient way to calculate averages?