Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Syntax error occurred during parsing: Invalid token -> when there is [] in dimension value

$
0
0

Hi All,

I have two mdx queries below and the only difference is the dimension value.

If dimension has brackets, the exception is thrown.

(Refer to query under Not OK, the brackets are bold and in red font)

Please advise how to handle this since I'm new to SSAS.

Hoping for your prompt response.

OK:

SELECT { [Measures].[加工実績個数] } ON COLUMNS, FILTER ( { ([マスタ].[Date].[Date].ALLMEMBERS * [実績].[昼夜勤].[昼夜勤].ALLMEMBERS * [マスタ].[ラインID].[ラインID].ALLMEMBERS * [マスタ].[ラインNo].[ラインNo].ALLMEMBERS * [実績].[工程名称].[工程名称].ALLMEMBERS * [実績].[従業員名称].[従業員名称].ALLMEMBERS * [実績].[社員名(漢字)].[社員名(漢字)].ALLMEMBERS * [マスタ].[部番].[部番].ALLMEMBERS ) }, [Measures].[加工実績個数] <> '') ON ROWS FROM (SELECT ([停止].[停止理由].[停止理由].[15.爪削り]) ON COLUMNS FROM MHI) WHERE ([マスタ].[].[].[2012]) CELL PROPERTIES VALUE

Not OK:

SELECT { [Measures].[加工実績個数] } ON COLUMNS, FILTER ( { ([マスタ].[Date].[Date].ALLMEMBERS * [実績].[昼夜勤].[昼夜勤].ALLMEMBERS * [マスタ].[ラインID].[ラインID].ALLMEMBERS * [マスタ].[ラインNo].[ラインNo].ALLMEMBERS * [実績].[工程名称].[工程名称].ALLMEMBERS * [実績].[従業員名称].[従業員名称].ALLMEMBERS * [実績].[社員名(漢字)].[社員名(漢字)].ALLMEMBERS * [マスタ].[部番].[部番].ALLMEMBERS ) }, [Measures].[加工実績個数] <> '') ON ROWS FROM (SELECT ([停止].[停止理由].[停止理由].[20.[] 故障]) ON COLUMNS FROM MHI) WHERE ([マスタ].[].[].[2012]) CELL PROPERTIES VALUE

Thanks,

Charllemagne


Viewing all articles
Browse latest Browse all 2472

Trending Articles



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