Error (MDX)
Raises an error, optionally providing a specified error message.
Syntax
Error( [ Error_Text ] )
Arguments
Error_Text
A valid string expression containing the error message to be returned.
Examples
The following query shows how to use the Error function inside a calculated measure:
WITH MEMBER MEASURES.ERRORDEMO AS ERROR("THIS IS AN ERROR")
SELECT
MEASURES.ERRORDEMO ON 0
FROM [Adventure Works]
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for