Below is the calculated member[Estimated Value]=IIf([Measures].[PRC]=0,null,Sum([Product].[MM#].members-[Product].[MM#].[All],[Measures].[PRC])/[Measures].[MM Count])SELECT {[Measures].[SO Actual Qty],[Measures].[Estimated Value]} ON COLUMNS, { ([Business Unit].[Business Unit].[Business Unit].ALLMEMBERS )} ON ROWS FROM [SMS_CURRENT_WW]WHERE {[Date- CGID Local].[CGID-QUARTER].&[2013Q1] }This Calculated Member gives the result as below SO Actual Qty Estimated Value (null) (null)ATM (null) (null)CCDiv 18491 $15,856.61CD 2008 $9,156.90CNG (null) (null)CNG Div 9448 $20,322.75CPG Div 26 $14,210.00CPLG Div (null) (null)CS (null) (null)DCG CPU 251 $664,899.00DCPU Div 9863 $31,271.64DEG (null) (null)DHED (null) (null)DPD Biz (null) (null)DT 78256 $153,214.08ECG 3472 $167,510.96ECG Adm (null) (null)ECPD (null) (null)ECPD EMD 15 $1,380.00EPD (null) (null)EPSD 52 $23,172.67ESS (null) (null)FPD (null) (null)HQ Div (null) (null)IAD 1227 $3,757.61ICBD (null) (null)ISD Biz (null) (null)LAD 87417 $65,469.21LCIA (null) (null)MBL 283574 $521,188.62McAD 600 (null)MCG 9450 $35,109.09MOCS DIV 27 $540.00MPG 4152 $10,722.69MWG (null) (null)NBD 60 $906.67NPG (null) (null)NPP (null) (null)NSG (null) (null)NSG Div 19133 $41,750.43NTD 45 $1,845.00OPD (null) (null)OTC Div (null) (null)PEG Div 3750 $6,583.51RSD (null) (null)SPD 4179 $4,570.70SPG (null) (null)SRV 97182 $861,521.82Systems 30 (null)TCD 411 $11,042.86UMG 5770 $33,560.00UPSD 3675 $16,053.29WiFi 4875 $5,617.33Unknown (null) (null)the problem i am faced up is the estimated value is calculated correctly at the business unit level but when u add all the business unit data to get sum it is showing wrond data i e =161,722.688 but when i add manually it is 2721233.43that means we are doing wrond aggregation can any body guide me how can i fix it
↧