Groups | Blog | Home
all groups > sql server reporting services > april 2005 >

sql server reporting services : Anoying bug...


Qbee
4/20/2005 11:31:02 PM
Hello,

I have a report which used AS as a source. I have a report parameter and a
dataset with the following query:

="with
Member [Measures].[BGBNLUniqueName] as
'[Product].[Concern].currentmember.UniqueName'
member [Measures].[BGBNLDisplayName] as 'IIF(
[Product].[Concern].Currentmember.level is [Product].[Concern].[PD], ""All
Business Groups"", [Product].[Concern].Currentmember.Name)'

set [Products] as ' {[Product].[Concern].[Sub Region].&[BNL].&[3400],
[Product].[Concern].[Sub
Region].&[BNL].&[3400].&[6918],[Product].[Concern].[Sub
Region].&[BNL].&[3400].&[6919],[Product].[Concern].[Sub
Region].&[BNL].&[3400].&[6920]} ' "

& IIF( Parameters!Product_BG.Label = "All Business Groups",
"Set [ChosenProducts] as ' Filter( [Products],
[Product].[Concern].currentmember.name = ""3400 Consumer Electronics"")'",
"Set [ChosenProducts] as ' Filter( [Products],
[Product].[Concern].currentmember.name = " & Parameters!Product_BG.Label &
")' ") & "

select { [Measures].[BGBNLUniqueName] , [Measures].[BGBNLDisplayName] } on
columns,
{ [ChosenProducts] } on rows

from [EDWH_SMRT_VIRT_SALESOUT]"


I have tested this in the mdx sample application and in order to work the
Parameter has to be enclosed by double quotes. When I do that I always get
the errormessage from AS that the value from the parameter is not enclosed
with double quotes.

Any Ideas? How can I escape the double quote?

Regards,
Robert Bruckner [MSFT]
4/21/2005 10:29:37 PM
I think the third part of the expression should be this:

& IIF( Parameters!Product_BG.Label = "All Business Groups", "Set
[ChosenProducts] as ' Filter( [Products],
[Product].[Concern].currentmember.name = ""3400 Consumer Electronics"")'",
"Set [ChosenProducts] as ' Filter( [Products],
[Product].[Concern].currentmember.name = """ & Parameters!Product_BG.Label &
""")' ") & "

Note: I have added "" around your parameter string concatenation.

-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.



[quoted text, click to view]

Qbee
4/22/2005 10:47:13 AM
Hi Robert,

I have tried this but still get the error.

Q

[quoted text, click to view]
AddThis Social Bookmark Button