I'm new to developing reports against Cubes and am having a heck of a time.
I have a cube (multidimensional SSAS 2012) with a Calendar dimension. The dimension has the typical Calendar Hierarchy, plus a Year member that is outside of the hierarchy (not sure what this kind of attribute is called).
I want to use the Year as a report parameter because I don't like the way hierarchy parameters look in SSRS and all the user requires here is the Year. So I set the Year member as a parameter in the Query Designer. Got an error upon viewing the report, so I removed it as a parameter and added it to the query output to see if it helped, but I keep getting that same error:
Query execution failed for dataset 'DateCalendar'.
Query(1, 368) The ALLMEMBERS function expects a hierarchy expression for
the argument. A member expression was used.
Note that I haven't created a dataset called 'DateCalendar'.
Here's the MDX the Query Designer spat out:
SELECT
NON EMPTY
{
[Measures].[%Completion]
} ON COLUMNS,
NON EMPTY
{
(
[Physician].[PCP Name].[PCP Name].ALLMEMBERS
*
[Physician].[LY Physician Score].[LY Physician Score].ALLMEMBERS
*
[Date].[Year].[Year].ALLMEMBERS
)
}
DIMENSION PROPERTIES MEMBER_CAPTION,
MEMBER_UNIQUE_NAME
ON ROWS
FROM [MemberMeasure]
CELL PROPERTIES VALUE,
BACK_COLOR,
FORE_COLOR,
FORMATTED_VALUE,
FORMAT_STRING,
FONT_NAME,
FONT_SIZE,
ONT_FLAGS
I'm very confused and in a big hurry and not having much luck googling an answer. Any help would be greatly appreciated!
AllMembers
? – FrankPlQuery(1, 368)
"). But if I delete all the line changes from your query, then this position is somewhere in the middle of the wordFORMATTED_VALUE
which does not make with the text of error message. Anyway, it seems you found the error now, and it seems the message is referring to another query (one for the parameters, as I understand). – FrankPl