I have a report which was built on MDX-query:
SELECT {[Measures].[IssueOpened] } ON COLUMNS,
{( STRTOSET("[Assigned To].[Id].[Some],[Assigned To].[Id].[Another]") *
[Priorities].[Id].[Id].ALLMEMBERS ) } ON ROWS
FROM (SELECT (STRTOSET(@createdOn) ) ON COLUMNS
FROM [Reports])
I want to change static string “[Assigned To].[Id].[Some]:[Assigned To].[Id].[Another]” to parameter:
SELECT {[Measures].[IssueOpened] } ON COLUMNS,
{( STRTOSET(@assignedTo) *
[Priorities].[Id].[Id].ALLMEMBERS ) } ON ROWS
FROM (SELECT (STRTOSET(@createdOn) ) ON COLUMNS
FROM [Reports])
I have created parameter, but Available values for this paramater is relation dataset (not MDX dimension). Allow multiple values set to Yes.
How can I convert value of parameter to list of atributes: “[Assigned To].[Id].[Some],[Assigned To].[Id].[Another]”?
One way would be to create CLR stored procedure for analysis services which will do it for you, so it would build the SET for you. You can find some examples on google. (i.e. http://andrewdenhertog.com/analysis-services/clr-stored-procedures-in-sql-server-analysis-services-ssas/)