![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am new to new to MDX queries, Here is my situation, I am using AS2000 Dimension : Charge,Calander,....... Chargable Account: All,Yes, NO, UNK Calendar : Year,Qtr,Month Fact for the year 2005,Q3,09 Chargable Account : All Mile V AMT, D Amt,........ 10 123.22 234.46 20 128.33 452.00 30 423.34 322.02 40 762.22 456.32 I want Mile same for whatever Chargable Account(All,Yes,No,UNK) If user select either All,Yes,No,UNK Mile should be same, only if they change Month mile can change for this dimension otherwise if should display Month level value. For above scenerio following MDX expression works fine, IIF([Chargable Account].CurrentMember.Level.Name <> "(All)", SUM([Chargable Account].[(All)].members, [Measures].[SMiles],[Measures].[SMiles]) Now my requirment changed, There is another measure DOTCharge: (ALL,Yes, No, Unk) IIF([Chargable Account].CurrentMember.Level.Name <> "(All)", SUM([Chargable Account].[(All)].members, [Measures].[SMiles]), IIF([DOTCharge].CurrentMember.Level.Name <> "(All)", SUM([DOTCharge].[(All)].members, [Measures].[SMiles]), |
![]() |
| Thread Tools | |
| Display Modes | |
| |