Hi Mohammed,
Keep MDX and SELECT on the same line.
I separated them in my above query onto different lines and it seems to throw an SQL error. I am not really sure why since the entire statement is a single query and also the developer guide shows with the lines separated.
For your error it seems to state the view could not be found. Is the user executing the SQL able to do a data preview on the Analytic view? Can you check if you have defined key attributes in the Analytic view?
Thanks,
Sharan