Groovy script to calculate Avg in Business Rule in PCMCS ASO cube
Hi,
I need to implement Groovy Business Rule to calculate Average of an Account from Jan to Current Period and assign this value to other account. It is PCMCS application and cube is ASO.
ACCT_Avg = Avg([Period].[Jan]: [Period].CurrentMember, [Account].[ACCT_ABC])
When I use this formula in Groovy Business Rule then it gives error "Expression is invalid".
Can you please help me out fixing this error.
This formula is working in Member Formula.
Thanks,
Rakesh