dudinatrix
02-08-2011, 12:04 PM
I'm trying to figure out how to implement a Multi Value List (or Multi Selection Button) MDX parameter in Report Designer 3.7. I managed to get it working with a single value only. Once I try using a multi value parameter it breaks.
Here is the MDX I'm trying to parameterize:
select NON EMPTY Crossjoin({[Measures].[Sales]}, {[TimeYTD].[2010], [TimeYTD].[2011]}) ON COLUMNS,
NON EMPTY Crossjoin({[Customer.Customer Rep (AR)].[#null].[RA], [Customer.Customer Rep (AR)].[#null].[RAT]}, {[Time.Time (Month Axis)].[January], [Time.Time (Month Axis)].[February], [Time.Time (Month Axis)].[March], [Time.Time (Month Axis)].[April], [Time.Time (Month Axis)].[May], [Time.Time (Month Axis)].[June], [Time.Time (Month Axis)].[July], [Time.Time (Month Axis)].[August], [Time.Time (Month Axis)].[September], [Time.Time (Month Axis)].[October], [Time.Time (Month Axis)].[November], [Time.Time (Month Axis)].[December]}) ON ROWS
from [BookedSales]
where {[Order.Order Sale Type].[C], [Order.Order Sale Type].[K], [Order.Order Sale Type].[O], [Order.Order Sale Type].[R], [Order.Order Sale Type].[S]}
Specifically I want to parameterize the where clause. I'm trying to make a list of all the options (C, K, O, R, S, etc.) so the user can select as many as they'd like to include.
I have the SINGLE value parameter working when I use this MDX. Parameter is called "SELECT_SALE_TYPE", type String. The value is just a single character, such as "C". This works fine:
select NON EMPTY Crossjoin({[Measures].[Sales]}, {[TimeYTD].[2010], [TimeYTD].[2011]}) ON COLUMNS,
NON EMPTY Crossjoin({[Customer.Customer Rep (AR)].[#null].[RA], [Customer.Customer Rep (AR)].[#null].[RAT]}, {[Time.Time (Month Axis)].[January], [Time.Time (Month Axis)].[February], [Time.Time (Month Axis)].[March], [Time.Time (Month Axis)].[April], [Time.Time (Month Axis)].[May], [Time.Time (Month Axis)].[June], [Time.Time (Month Axis)].[July], [Time.Time (Month Axis)].[August], [Time.Time (Month Axis)].[September], [Time.Time (Month Axis)].[October], [Time.Time (Month Axis)].[November], [Time.Time (Month Axis)].[December]}) ON ROWS
from [BookedSales]
where {[Order.Order Sale Type].[${SELECT_SALE_TYPE}]}
How can I convert this to support the Multi Value List or Multi Selection Button? I'm just learning MDX so maybe I'm stuck thinking of it in terms of SQL.. any help would be appreciated.
Here is the MDX I'm trying to parameterize:
select NON EMPTY Crossjoin({[Measures].[Sales]}, {[TimeYTD].[2010], [TimeYTD].[2011]}) ON COLUMNS,
NON EMPTY Crossjoin({[Customer.Customer Rep (AR)].[#null].[RA], [Customer.Customer Rep (AR)].[#null].[RAT]}, {[Time.Time (Month Axis)].[January], [Time.Time (Month Axis)].[February], [Time.Time (Month Axis)].[March], [Time.Time (Month Axis)].[April], [Time.Time (Month Axis)].[May], [Time.Time (Month Axis)].[June], [Time.Time (Month Axis)].[July], [Time.Time (Month Axis)].[August], [Time.Time (Month Axis)].[September], [Time.Time (Month Axis)].[October], [Time.Time (Month Axis)].[November], [Time.Time (Month Axis)].[December]}) ON ROWS
from [BookedSales]
where {[Order.Order Sale Type].[C], [Order.Order Sale Type].[K], [Order.Order Sale Type].[O], [Order.Order Sale Type].[R], [Order.Order Sale Type].[S]}
Specifically I want to parameterize the where clause. I'm trying to make a list of all the options (C, K, O, R, S, etc.) so the user can select as many as they'd like to include.
I have the SINGLE value parameter working when I use this MDX. Parameter is called "SELECT_SALE_TYPE", type String. The value is just a single character, such as "C". This works fine:
select NON EMPTY Crossjoin({[Measures].[Sales]}, {[TimeYTD].[2010], [TimeYTD].[2011]}) ON COLUMNS,
NON EMPTY Crossjoin({[Customer.Customer Rep (AR)].[#null].[RA], [Customer.Customer Rep (AR)].[#null].[RAT]}, {[Time.Time (Month Axis)].[January], [Time.Time (Month Axis)].[February], [Time.Time (Month Axis)].[March], [Time.Time (Month Axis)].[April], [Time.Time (Month Axis)].[May], [Time.Time (Month Axis)].[June], [Time.Time (Month Axis)].[July], [Time.Time (Month Axis)].[August], [Time.Time (Month Axis)].[September], [Time.Time (Month Axis)].[October], [Time.Time (Month Axis)].[November], [Time.Time (Month Axis)].[December]}) ON ROWS
from [BookedSales]
where {[Order.Order Sale Type].[${SELECT_SALE_TYPE}]}
How can I convert this to support the Multi Value List or Multi Selection Button? I'm just learning MDX so maybe I'm stuck thinking of it in terms of SQL.. any help would be appreciated.