Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

MDX : my query has error please help

$
0
0

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.


Viewing all articles
Browse latest Browse all 14337


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>