Hello,
I was trying to do cascading parameters based off my cube and I wasn't able to do this. Is it possible?
For example, I have a dimension that has Products so I first select the parameter for product type (Dairy, Frozen, Candy) and then I have another dropdown listbox that has the name of each product (Milk, Ice Cream, Lemon Drops). The second dropdown listbox should only contain the products that match what parameter was selected in the first dropdown.
When I couldn't get that to work, I went to the source system containing the Dimension tables and just did nice and easy SQL statements from there. It worked but I, for some reason that I can't explain, think this is not the proper way to do it.
Also, is there a way to have a default on the second parameter based on the first parameter selected? I would assume that default would be [All].
Thank you.
-Gumbatman
Yes it is possible. When you use the query designer, by default each parameter depends on the one before it having a value, even if the parameters are not really related. For this, you want to maintain that link. Then, in your MDX that creates the dataset for parameter #2 you can refer to parameter #1 (it will be called something like @.MyParameterName), i.e. you can use it as part of a STRTOSET or STRTOMEMBER function.|||Sluggy,
Thank you so much for this answer. I was banging my head against the wall trying to figure out how to do this.
-Gumbatman
|||Could you please post an example of this? My head also aches a lot
I just need the MDX syntax of the second dataset, the one of the parameter that depends on the first one selected.
Is there any way, from within SSRS to "filter" based on the previous parameter inside the MDX sentence?
Using SQL tables datasources and cascading parameters is quite straightforward, not the same with Olap cubes as datasources.
Thank you
Mike
No comments:
Post a Comment