![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
-----Original Message----- Pardon my newbie questions. I think I need a calculated measure that involves Time Dimension (y/q/m/d), linked to (any/selected) measures, that shows a difference between two adjacent time slices. Something like this (from the perspective of Excel & Pivot Table): Client Time 2003 Quarter2 Quarter3 Variance Quarter4 Variance A 45 51 6 55 4 B 39 37 - 2 38 1 .... Is anything like this possible without involving RDB to begin with? Note: I use SQL7 OLAP. TIA lc . |
#3
| |||
| |||
|
|
(time.currentmember,measures.[my measure]) - (time.prevmember,measures.[my measure]) |
|
If you have many measures and you donīt want to define a calc measure for each one then you would need an extra dimension (say Periodicity] with one stored member, say Regular, and a calc member such as: (time.currentmember,periodicity.regular) - (time.prevmember,periodicity.regular) |
|
HTH, |
#4
| |||
| |||
|
|
If you have many measures and you donīt want to define a calc measure for each one then you would need an extra dimension (say Periodicity] with one stored member, say Regular, and a calc member such as: (time.currentmember,periodicity.regular) - (time.prevmember,periodicity.regular) |
#5
| |||
| |||
|
|
-----Original Message----- "Brian Altmann" <brianaltmann (AT) yahoo (DOT) com> wrote in message news:0f2d01c38ccf$0159b100$a301280a (AT) phx (DOT) gbl... If you have many measures and you donīt want to define a calc measure for each one then you would need an extra dimension (say Periodicity] with one stored member, say Regular, and a calc member such as: (time.currentmember,periodicity.regular) - (time.prevmember,periodicity.regular) Hmmm, this didn't work after all. So, I added to my fact table a varchar field and filled it value of 'Variance'. Then I created a dimension (Variances) out of it and used it in calc member formula: (time.currentmember, [Variances].[All Variances]. [Variance]) - (time.prevmember, [Variances].[All Variances]. [Variance]) All I get is error in that field. What did I miss (if it's obvious to you)? Thanks a lot. lc . |
#6
| |||
| |||
|
|
Sorry I was not clear, of course you need the extra field in the fact table to link to the extra dimension. I prefer to create the dimension ([Variances] or Periodicity) out of a one-record table instead of creating it out of the fact table column because the design is clearer and processing is more efficient. Still your solution should work as long as the calc member belongs to the [Variances] dimension. |
![]() |
| Thread Tools | |
| Display Modes | |
| |