2

あなたの助けが必要です!!

SSRS を使用して、多値パラメーターを含むレポートを作成したいと考えています。

だから、私はこのmdxスクリプトを書いた:

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 + ")" )

ただし、複数値のパラメーターではなく、パラメーターの1つの値で機能します。複数の値がある場合、メタデータ メンバーに null の結果があります。

何か案が ?

ありがとう

4

1 に答える 1

1

WITH -- 地理メタデータ MEMBER [メジャー].[地理] AS "[地理]."+ @NiveauGeographie +".Currentmember.Uniquename"

MEMBER [メジャー].[Geographie_Label] AS "[Geographie]."+ @NiveauGeographie +".CurrentMember.Member_Caption"

SELECT NON EMPTY { [メジャー].[地理]、[メジャー].[地理_ラベル]、[メジャー].[11 VA]

列で、

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

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

行に

[マイキューブ] から

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

于 2013-03-04T10:48:42.963 に答える