SSAS MDX : The Axis0 function expects a tuple set expression for the argument. A string or numeric expression was used.
Hi All
i will explain you the mdx error i have encountered and its solution .
we have written and mdx query to give result of successrate based on certain dimensions
select non empty([D Date].[Hierarchy].members) on 1,
Sum(i will explain you the mdx error i have encountered and its solution .
we have written and mdx query to give result of successrate based on certain dimensions
select non empty([D Date].[Hierarchy].members) on 1,
(
[D Application].[Application].&[S6a/S6d]
,[D Command].[Command].&[ULR]
,{Except([D Origin Realm].[Origin Realm],[D Origin Realm].[Origin Realm].&[epc.mnc001.mcc206.3gppnetwork.org])},[D Destination Realm].[Destination Realm].&[epc.mnc001.mcc206.3gppnetwork.org]
)
,[Measures].[SuccessRate]
)
on 0from [DRV]
The Above query will return an Error
The Axis0 function expects a tuple set expression for the argument. A string or numeric expression was used.
The solution for this error is we need to create the Member and then call that member in the select statement .
WITH MEMBER NewMember ASSUM(
(
[D Application].[Application].&[S6a/S6d]
,[D Command].[Command].&[ULR]
,{Except([D Origin Realm].[Origin Realm],[D Origin Realm].[Origin Realm].&[epc.mnc001.mcc206.3gppnetwork.org])},[D Destination Realm].[Destination Realm].&[epc.mnc001.mcc206.3gppnetwork.org]
)
,[Measures].[SuccessRate]
)
SELECT [Measures].[NewMember]
ON 0,non empty([D Date].[Hierarchy].members) on 1from [DRV]
Comments
Post a Comment