Running SSRS2012. We report using cubes, so I cannot change the MDX/Query code.
I have a simple query from a Client cube: Client.ClientID, Client.ClientName, Client.ClientAddress
I have used the Query Designer to add ClientID as a parameter.
SSRS has automatically:
- created the parameter in the Report Designer @ClientClientID
- created the parameter dataset
- added the parameter under the parameter tab in the Client dataset
This is expected behaviour and the report runs as expected, prompting me to choose a value from the list. If I do, it returns the data for the single client I'm after.
This is my problem.
Although it works, the list of values returned is very long and so is difficult to use. Users will only be running this report for one client at a time so they'd like to type in the single client id and run the report.
I've tried everything I can think of.
The closest I've come is adding another parameter @PreFilter and using that as a filter on the parameter dataset.
However, to the user it's terrible. They're prompted to type the client id into @PreFilter, then they have to wait an age (as the parameter dataset is filtered) and then they select the exact same client id from the @ClientClientID parameter prompt.
I've even specified the default value of @ClientClientID to be @PreFilter, but they're still prompted to Select a value.
There must be a better way!