WITH MEMBER [Measures].[ONE] AS
SUM({( [Fact Payments].[Sale Ref].[Sale Ref].&[1000001057] ) ,
( -{[Dim Pay Type].[Pay Type Key].[Pay Type Key].&[2]}) },
[Measures].[Amount])
MEMBER [Measures].[two] AS
SUM({( [Fact Payments].[Sale Ref].[Sale Ref].&[1000001057] ) ,
( [Dim Pay Type].[Pay Type Key].[Pay Type Key].&[2] ) ,
( [Dim Chq Status].[State Code].[State Code].&[1] : [Dim Chq Status].[State Code].[State Code].&[3] )},
[Measures].[Amount])
MEMBER [Measures].[three] AS
SUM({( [Fact Payments].[Sale Ref].[Sale Ref].&[1000001057] ) },
[Measures].[Total Amount])
Member [Measures].[Result] AS
[Measures].[ONE] + [Measures].[two]+[Measures].[three]
select [Measures].[Result] ON Columns
FROM [Teh DW]
-------------
#Error