I'm using a lot of parametrized reports. But yesterday I want to make a report which takes a boolean parameter to do something like this:
WITH
MEMBER [Measures].[ShowU$SMeasure] AS ''+@show+''
MEMBER [Measures].[ShowingData] AS 'IIF([Measures].[ShowU$SMeasure], [Measures].[Amount], [Measures].[Tons])'
...
...
...
If I pass true then show U$S else Tons. But the report want to associate a parameter with a dimension.
Finnaly I solved this from the report, adding 2 calculated fields.
But this runs slower than the first thought.
Another thing I couldn't do was to put a parameter in a datetime picker and format the date to use it ina a parameter to the MDX. Because the DATASET always expect that the parameter is associated with a dimension.
Why always a parameter has to be associated with a dimension
Any ideas
Thanks in advance

There is a way to use an arbitrary parameter in OLAP Report (not associated with a dimension)?
ZK
I have been having a similar problem trying to get arbitrary parameters into an MDX query. I find that there are 2 separate areas to control parameters in RS2005.
There are a few annoying things going on here:
I would like to know whether anyone else finds these issues a problem
Personally I find the tight binding of parameters to hierarchies and the auto-generation of MDX to be a major headache - no doubt well intentioned but it has cost me a lot of time undoing what RS has helpfully done.
wyktor
I create a stored procedure which takes the date along with other parameters and creates an mdx query dynamically . Then it uses an linkied server to fire the mdx query and returns a flat resultset to the report .
I used DateTime.Today.AddDays(-1) for the defaultvalue of the datetime parameter , as I needed it to open to yesterday's date.
Cheers
Shai
CSavage
I want to pass for ex a boolean parameter.
Thanks
John V
nilesh
Because that, I have to do this in the report instead in the query. Why I whant to do taht Easy MDX query is faster than report!!!
I will try to do this selecting any dimension member and pass the parameter I want.
Later I'll tell you!!!