I'm pretty new to MDX. Can you please help me out in clearing this concept. Your help is appreciated.
I've the below MDX query which executes perfectly fine.
with member [measures].[perc] as
([Dim Customer].[Customer ID].currentmember,[Measures].[Amount])
select
[measures].[perc] on 0,
[Dim Customer].[Customer ID].children on 1
from [Analysis DW]
But, when I try to refer [measure].[perc], I get an error saying "The '[perc]' member was not found in the cube when the string, [measures].[perc], was parsed."
Please find below the error mdx script for reference-
with
member [measures].[perc] as
([Dim Customer].[Customer ID].currentmember,[Measures].[Amount])
select [measures].[perc] on 0
from
(
select
[measures].[perc] on 0,
[Dim Customer].[Customer ID].children on 1
from [Analysis DW]
)