0 votes
1 view
in BI by (9.4k 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 (19.3k 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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...