![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
MSAS 2000 and a Virture Cube Dimensions: Time_Dim is Year -> Month Prod_Dim is Brand -> Prod -> Cat -> SubCat -> SKU Code_Dim is Code -> SubCode Measures: A and B I have a calculated member that is CA = MA * MB I only need that CA at month level, so time dim is not a problem. However, the calculation is wrong if I am at a higher level, i.e. SubCat than SKU in the Prod_dim. It seems that the default way for CA is MA of (SKU1 + SKU2 + SKU3....) * MB of (SKU1 + SKU2 + SKU3...). What I wanted is (MA * MB) of SKU1 + (MA * MB) of SKU2 + (MA * MB) of SKU3.... Do I write a Custom Rollup Formula in the member Porperties of each dimension? If that's the case, could you give me a formula example for SubCat level of Prod_DIM? |
#3
| |||
| |||
|
|
Are measures A & B part of the same physical cube? If so, the best thing to do is to create a "real" measure with the expression MA * MB. Otherwise it gets a bit harder because you are essentially fighting against the natural aggregations. If the issue is just around the product dimension - I think you could create a calculated measure something like the following: SUM(DESCENDANTS(Prod_Dim.CurrentMember,Prod_Dim.SK U), MA * MB) However, If you need to do the multiplication at the leaf level of more than the product dimension then it gets a bit more complex. -- Regards Darren Gosbell [MCSD] Blog: http://www.geekswithblogs.net/darrengosbell In article <3F8EED39-4CAD-4620-B24F-956741F7D2A5 (AT) microsoft (DOT) com>, MJ (AT) discussions (DOT) microsoft.com says... MSAS 2000 and a Virture Cube Dimensions: Time_Dim is Year -> Month Prod_Dim is Brand -> Prod -> Cat -> SubCat -> SKU Code_Dim is Code -> SubCode Measures: A and B I have a calculated member that is CA = MA * MB I only need that CA at month level, so time dim is not a problem. However, the calculation is wrong if I am at a higher level, i.e. SubCat than SKU in the Prod_dim. It seems that the default way for CA is MA of (SKU1 + SKU2 + SKU3....) * MB of (SKU1 + SKU2 + SKU3...). What I wanted is (MA * MB) of SKU1 + (MA * MB) of SKU2 + (MA * MB) of SKU3.... Do I write a Custom Rollup Formula in the member Porperties of each dimension? If that's the case, could you give me a formula example for SubCat level of Prod_DIM? |
#4
| |||
| |||
|
|
Thanks Darren. I would not be able to create a "real" measure in this case. MA and MB are from different cubes. I have 4 dimensions and 3 measures in the virture cube. I have a IIF statement checking for time_dim. If I am at the month level, do MA*MB, else NULL. If I do that kind of checking for all 4 dimensions, the nested IIFs will go forever. IIF time at month IIF prod at sku IIF code at subcode IIF dim_4 at the leaf .... What other solution do I have? Please. "Darren Gosbell" wrote: Are measures A & B part of the same physical cube? If so, the best thing to do is to create a "real" measure with the expression MA * MB. Otherwise it gets a bit harder because you are essentially fighting against the natural aggregations. If the issue is just around the product dimension - I think you could create a calculated measure something like the following: SUM(DESCENDANTS(Prod_Dim.CurrentMember,Prod_Dim.SK U), MA * MB) However, If you need to do the multiplication at the leaf level of more than the product dimension then it gets a bit more complex. -- Regards Darren Gosbell [MCSD] Blog: http://www.geekswithblogs.net/darrengosbell In article <3F8EED39-4CAD-4620-B24F-956741F7D2A5 (AT) microsoft (DOT) com>, MJ (AT) discussions (DOT) microsoft.com says... MSAS 2000 and a Virture Cube Dimensions: Time_Dim is Year -> Month Prod_Dim is Brand -> Prod -> Cat -> SubCat -> SKU Code_Dim is Code -> SubCode Measures: A and B I have a calculated member that is CA = MA * MB I only need that CA at month level, so time dim is not a problem. |
![]() |
| Thread Tools | |
| Display Modes | |
| |