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

MDX : Please edit this script for me

$
0
0

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


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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