Bonjour à tous,
Je cherche à filtrer sur une dimension de temps, les années > 2000. Ce dataset me permet alors de remplir un paramètre de mon rapport.
Je ne comprends pas pourquoi le filtre ne filtre rien
Le second essai ne s'exécute même pas.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 WITH MEMBER [Measures].[ParameterCaption] AS '[Date Inscription].[Inscription - Annee - Mois - Jour].CURRENTMEMBER.MEMBER_CAPTION' MEMBER [Measures].[ParameterValue] AS '[Date Inscription].[Inscription - Annee - Mois - Jour].CURRENTMEMBER.UNIQUENAME' MEMBER [Measures].[ParameterLevel] AS '[Date Inscription].[Inscription - Annee - Mois - Jour].CURRENTMEMBER.LEVEL.ORDINAL' SELECT { [Measures].[ParameterCaption] , [Measures].[ParameterValue] , [Measures].[ParameterLevel]} ON COLUMNS , { filter ( [Date Inscription].[Inscription - Annee - Mois - Jour].[Mois].AllMembers ,[Date Inscription].[Inscription - Annee - Mois - Jour].CurrentMember.MEMBER_CAPTION > 2000) } ON ROWS FROM [Demos]
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 WITH MEMBER [Measures].[ParameterCaption] AS '[Date Inscription].[Inscription - Annee - Mois - Jour].CURRENTMEMBER.MEMBER_CAPTION' MEMBER [Measures].[ParameterValue] AS '[Date Inscription].[Inscription - Annee - Mois - Jour].CURRENTMEMBER.UNIQUENAME' MEMBER [Measures].[ParameterLevel] AS '[Date Inscription].[Inscription - Annee - Mois - Jour].CURRENTMEMBER.LEVEL.ORDINAL' SELECT { [Measures].[ParameterCaption] , [Measures].[ParameterValue] , [Measures].[ParameterLevel]} ON COLUMNS , { filter ( [Date Inscription].[Inscription - Annee - Mois - Jour].[Mois].AllMembers ,[Date Inscription].[Inscription - Annee - Mois - Jour].[Annee] > 2000) } ON ROWS FROM [Demos]Merci pour vos idées.La fonction > attend une expression d'ensemble de tuples pour l'argument 2. Une expression de chaîne ou numérique a été utilisée.
EDIT : Par contre cela fonctionne :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 WITH MEMBER [Measures].[ParameterCaption] AS '[Date Inscription].[Inscription - Annee - Mois - Jour].CURRENTMEMBER.MEMBER_CAPTION' MEMBER [Measures].[ParameterValue] AS '[Date Inscription].[Inscription - Annee - Mois - Jour].CURRENTMEMBER.UNIQUENAME' MEMBER [Measures].[ParameterLevel] AS '[Date Inscription].[Inscription - Annee - Mois - Jour].CURRENTMEMBER.LEVEL.ORDINAL' SELECT { [Measures].[ParameterCaption] , [Measures].[ParameterValue] , [Measures].[ParameterLevel]} ON COLUMNS , [Date Inscription].[Inscription - Annee - Mois - Jour].[Mois].AllMembers ON ROWS FROM ( SELECT ( -{ [Date Inscription].[Inscription - Date Annee].&[1993] , [Date Inscription].[Inscription - Date Annee].&[1994] , [Date Inscription].[Inscription - Date Annee].&[1995] , [Date Inscription].[Inscription - Date Annee].&[1996] , [Date Inscription].[Inscription - Date Annee].&[1997] , [Date Inscription].[Inscription - Date Annee].&[1998] , [Date Inscription].[Inscription - Date Annee].&[1999] } ) ON COLUMNS FROM [Demos])
Partager