select non empty ([Measures].[Amount]) * ([Measures].[Total Amount]) on columns ,
non empty([Dim DC].[DC Name].[DC Name].members) on rows
from [Teh DW]
Where ([Fact Payments].[Sale Ref].[Sale Ref].&[1000001057] and -{[Dim Pay Type].[Pay Type Key].[Pay Type Key].&[2]})
OR ([Fact Payments].[Sale Ref].[Sale Ref].&[1000001057] and [Dim Pay Type].[Pay Type Key].[Pay Type Key].&[2] and ([Dim Chq Status].[State Code].[State Code].&[1] : [Dim Chq Status].[State Code].[State Code].&[3]))
OR ([Fact Ret Sale].[Sale Ref].[Sale Ref].&[1000001057])
-------------------------ERR-------------------------------
Query (4, 7) The AND function expects a string or numeric expression for the 2 argument. A tuple set expression was used.