Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSRS. Parameters mdx script doesn't work with multi-value


SSRS. Parameters mdx script doesn't work with multi-value

Author
Message
Lidou123
Lidou123
SSC Journeyman
SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)

Group: General Forum Members
Points: 91 Visits: 378
Hi ALL,

I need your your help!!

I want to create a report with multi-value parameters with SSRS.

So, I wrote this mdx script:

WITH
-- Geography metadata

MEMBER [Measures].[Geographie]
AS StrToValue ( @SelectionGeographie + ".Hierarchy.Currentmember.Uniquename" )
MEMBER [Measures].[Geographie_Label]
AS StrToValue( @SelectionGeographie + ".Hierarchy.CurrentMember.Member_Caption" )

-- Activity metadata

MEMBER [Measures].[Activite]
AS StrToValue( @SelectionActivite + ".Hierarchy.Currentmember.Uniquename" )
MEMBER [Measures].[Activite_Label]
AS StrToValue( @SelectionActivite + ".Hierarchy.CurrentMember.Member_Caption" )

-- Date metadata

MEMBER [Measures].[Temps]
AS StrToValue( @Annee + ".Hierarchy.Currentmember.Uniquename" )
MEMBER [Measures].[Temps_Label]
AS StrToValue( @Annee + ".Hierarchy.CurrentMember.Member_Caption" )

-- Perimetre metadata
MEMBER [Measures].[Perimetre]
AS StrToValue( @Perimetre + ".Hierarchy.Currentmember.Uniquename" )
MEMBER [Measures].[Perimetre_Label]
AS StrToValue( @Perimetre + ".Hierarchy.CurrentMember.Member_Caption" )


SELECT NON EMPTY {
-- display the parameters attributes on columns

[Measures].[Geographie],
[Measures].[Geographie_Label],


[Measures].[Activite],
[Measures].[Activite_Label],

[Measures].[Temps],
[Measures].[Temps_Label],

[Measures].[Perimetre],
[Measures].[Perimetre_Label],


[Measures].[11 VA]


} ON COLUMNS,

( STRTOSET ( "{" + @SelectionGeographie + "}") ,


STRTOSET ("{" + @SelectionActivite + "}" ))


ON ROWS

FROM [MyCube]

WHERE STRTOTUPLE ( "(" +@Annee + "," + @Perimetre + ")" )

But It works with one value in parameter and not with muti-value parameters.
I have null result in my metadata members when I have multi value.

Any idea ?

Thank
Lidou123
Lidou123
SSC Journeyman
SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)

Group: General Forum Members
Points: 91 Visits: 378
Noone ? : (
I don't know why That works when I have only one parameter and not with many parameters ? is it possible to use the uniquename functions with muti-value ?

Lynn Pettis
Lynn Pettis
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24278 Visits: 37987
Could be the fact that you double posted, or just that no one has an answer for you. I know I don't.

Please post any further responses here.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Lidou123
Lidou123
SSC Journeyman
SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)

Group: General Forum Members
Points: 91 Visits: 378
yes. sorry
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search