I tried to execute this query and i can´t understand what´s wrong with it.
SELECT {[Measures].[Internet Sales Amount],
[Measures].[Reseller Sales Amount]} ON COLUMNS,
[Product].[Product].[Product].Members ON ROWS
FROM [AdventureWorks2008R2]
I get error message:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'Measures'.
I thought it was the “{}” and changed them for “()” instead, then i got this message:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near ','.
— EDIT
I was at the wrong place writing the query but now i get this other message:
Executing the query ...
Query (3, 10) The MEMBERS function expects a hierarchy expression for the argument. A member expression was used.
Execution complete
The query:
SELECT {[Measures].[Internet Sales Amount] ,
[Measures].[Reseller Sales Amount]} ON COLUMNS,
{[Product].[Product].[Product].Members} ON ROWS
FROM [Adventure Works]
nothing wrong with query.
i think you run the query against sql db .not Analysis service db
.please right click on ssas db adventurework an run the query.