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(
(
[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 AS
SUM(
(
[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

Popular posts from this blog

SSAS : A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient). + Solution

SSIS Error : Unable to infer the XSD from the XML file. The XML contains multiple namespaces