Hi all,
I have a cube that has time, product, and location hierarchies. I also have the retail price for every transaction at the leaf level. I am having trouble writing the mdx to get the aggregation the way I need them.
In the time dimension, at the non-leaf level, i want the last retail price of the children in the time. ie: if I am at the quarter level, i want to show the price of period 3.
In both the Product and Location dimensions, I want the retail price to be averaged at the non-leaf levels such as Product category and Zip code.
I don't really know what the right approach is to make this happen, any advice is greatly appreciated.
Thanks,
Wino...
Hi Wino,
Based on my understanding of your scenario, and assuming you have AS 2005 Enterprise Edition, here's an approach to try:
Create a cube measure like [RetailPrice] on the "Retail Price" fact table field, using LastNonEmpty aggregation function.
No comments:
Post a Comment