1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| 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 + ")" ) |
Partager