Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)

I had an MDX function

SELECT NON EMPTY { [Measures].[Cash Expend] } ON COLUMNS, NON EMPTY 
     { ( [Documents].[Doc No].[Doc No].ALLMEMBERS * 
  [Vendor].[Vendor Name].[Vendor Name].ALLMEMBERS * 
  [Documents].[Accept Date].[Accept Date].ALLMEMBERS ) } 
  DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS 
FROM ( SELECT ( { [Account Type].[AT].&[22] } ) ON COLUMNS 
FROM ( SELECT ( { [Documents].[BFY].&[2008]
                , [Documents].[BFY].&[2009]
                , [Documents].[BFY].&[2010]
                , [Documents].[BFY].&[2011] } ) ON COLUMNS 
 FROM ( SELECT ( { [Transaction Code].[TC].&[PV] } ) ON COLUMNS 
  FROM ( SELECT ( STRTOMEMBER(@FromDocumentsAcceptDate) : STRTOMEMBER(@ToDocumentsAcceptDate) ) ON COLUMNS 
   FROM ( SELECT ( STRTOSET(@VendorVendCode) ) ON COLUMNS 
    FROM [FMCS])))) 
WHERE ( [Transaction Code].[TC].&[PV],
  [Account Type].[AT].&[22],   
 IIF( STRTOSET(@VendorVendCode).Count = 1, STRTOSET(@VendorVendCode), [Vendor].[Vend Code].currentmember ) ) 
CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

and I am facing the following error:Parser: The end of the input was reached" What do this mean? 

1 Answer

0 votes
by (22.5k points)

Use the following measure

FROM ( SELECT ( { [Account Type].[AT].&[22] } ) ON COLUMNS 

If u want to know more about the tool, then check the Power BI Certification 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Dec 24, 2020 in BI by Chris (11.1k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...