![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I need someone to help me solve this problem... I have a measure in my cube named "Stock" that represents a number of given product in store. Generally it expresses a last state of store in chosen time period (e.g. "Stock" measure for May 2002 has value equal to 31.5.2002 - 'cos this is a last state of store in this time period - and for second quarter 2002 has value equal to 30.6.2002 etc.). But in All levels (totals) I want to calculate a SUM of (selected) store states to get a total stock (e.g. calculate a total stock of all stores in given time period). And this is my problem! Could somebody help me with this PLEASE? Btw, there are also "Purchase price" and "Sale price" measures in this cube. These should be aggregate always as average. .. I don't know if it's possible to do something like this direct in AS (???). Thanks a lot for any tip in advance! Vlado |
#3
| |||
| |||
|
|
Hi Vladimir, One approach is to use a custom level formula on all levels in your time dimension except the lowest level. Something like: time.currentmember.lastchild Another approach is to create a calculated cell on top of each inventory type member with a similar calcualtion (except now you have to test whether or not you;re at the bottom level). You need Enterprise edition for calculated cells feature. And another approach is to create a calculated member for each stock-type member and do the same thing. Hope this helps, Richard |
#4
| |||
| |||
|
|
Hi Vladimir, One approach is to use a custom level formula on all levels in your time dimension except the lowest level. Something like: time.currentmember.lastchild Another approach is to create a calculated cell on top of each inventory type member with a similar calcualtion (except now you have to test whether or not you;re at the bottom level). You need Enterprise edition for calculated cells feature. And another approach is to create a calculated member for each stock-type member and do the same thing. Hope this helps, Richard -- This posting is provided 'AS IS' with no warranties, and confers no rights. "Vladimir Turenic" <vladot (AT) hotmail (DOT) com> wrote in message news:OSKQA%23OiDHA.964 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Hi all, I need someone to help me solve this problem... I have a measure in my cube named "Stock" that represents a number of given product in store. Generally it expresses a last state of store in chosen time period (e.g. "Stock" measure for May 2002 has value equal to 31.5.2002 - 'cos this is a last state of store in this time period - and for second quarter 2002 has value equal to 30.6.2002 etc.). But in All levels (totals) I want to calculate a SUM of (selected) store states to get a total stock (e.g. calculate a total stock of all stores in given time period). And this is my problem! Could somebody help me with this PLEASE? Btw, there are also "Purchase price" and "Sale price" measures in this cube. These should be aggregate always as average. .. I don't know if it's possible to do something like this direct in AS (???). Thanks a lot for any tip in advance! Vlado |
![]() |
| Thread Tools | |
| Display Modes | |
| |