For the query below
WITH MEMBER [Measures].[ParameterCaption] AS [Financial Location].[Location].CURRENTMEMBER.MEMBER_CAPTION
MEMBER [Measures].[ParameterValue] AS [Financial Location].[Location].CURRENTMEMBER.UNIQUENAME
MEMBER [Measures].[ParameterLevel] AS [Financial Location].[Location].CURRENTMEMBER.LEVEL.ORDINAL
MEMBER [Financial Location].[Location].[Total] as Except([Financial Location].[Location].[Location],[Financial Location].[Location].[All])
SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]}
ON COLUMNS ,
NON EMPTY
{
[Financial Location].[Location].[Total],
ORDER (Except([Financial Location].[Location].[Location],[Financial Location].[Location].[All]), [Measures].[ParameterCaption], BASC)
}
ON ROWS FROM [EDW]
where
(
case when (@District) = "Total"
THEN StrToMember("[Financial Location].[Location].[Total]")
else
(
StrTomember(@District)
)
END
)
If i give District value as ''[Financial Location].[District].&[1]" it runs fine by considering the else case of where clause, but if i give District value as "Total" i get the error saying
The location hierarchy already appears in the axis 1 axis
Can some one tell me how to solve this issue?
Thanks