![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
My scenario is to calculate the YTD differently according to the account type. Every account with a number < 30000 is a BAL account type while accounts >= are DR account types. I have build a dimension name LedgerCat with one level "Ledger Cat". The dimension has an All level and a Ledger Cat level with 2 values 'BAL' and 'DRIFT' I have tried the formula for the YTD: iif ([LedgerCat].Currentmember.Name = "DR" ,sum (ytd([Time].currentmember),[Measures].[Amountmst]), sum(PeriodsToDate([Time].[(All)],[Time].Currentmember),[Measures].[Amountmst ]) ) It does not really do what I want. If I select the value "DR" all accounts are calculated according to the " sum (ytd([Time].currentmember),[Measures].[Amountmst]" part of the formula, also the < 30000 accounts. And visa versa. So my question is: how to calculate YTD differently according to the LedgerCat dimension, so that every account number < 30000 gets calculated one way and all account numbers >= 30000 get calculated the other way, no matter how you "turn" the cube. Thanks in advance Henrik. |
![]() |
| Thread Tools | |
| Display Modes | |
| |