Bonjour,

Suite au conseil de Rudib ici même, j'ai essayé d'intégrer la fonction COALESCEEMPTY dans le but de remplacer des NULL par une valeur quelconque (None en l'occurrence).

J'ai donc fait ceci :
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
WITH member [Dim Employee].[Date Terminated].[DateNone] as '"None"' 
Member [Dim Employee].[Date Terminated].[Date Terminated] as
COALESCEEMPTY([Dim Employee].[Date Terminated].[Date Terminated],[Dim Employee].[Date Terminated].[DateNone])
SELECT NON EMPTY { [Measures].[# Employee Distinct] } ON COLUMNS, 
 NON EMPTY { ([Dim BV Organisation].[Product Line].[Product Line].ALLMEMBERS 
 * [Dim BV Organisation].[Business Unit].[Business Unit].ALLMEMBERS 
 * [Dim Employee].[Employee].[Employee].ALLMEMBERS 
 * [Dim Employee].[Employee Name].[Employee Name].ALLMEMBERS 
* [Dim Employee].[Date Terminated].[Date Terminated]
 * [Fact TE Details].[TE Details Last Extract Date].[TE Details Last Extract Date].ALLMEMBERS 
 * [Dim Employee].[Date Started].[Date Started].ALLMEMBERS ) } ON ROWS FROM ( 
 SELECT ( { [Dim Time].[Year].&[2007] } ) ON COLUMNS FROM ( 
 SELECT ( { [Dim Employee].[Home Company].&[00153] } ) ON COLUMNS FROM ( 
 SELECT ( { [Dim Employee].[Employee Search Type].&[E], [Dim Employee].[Employee Search Type].&[X] } ) ON COLUMNS FROM ( 
 SELECT ( { [Dim BV Organisation].[Reporting Line].&[I&F], [Dim BV Organisation].[Reporting Line].&[INF] } ) ON COLUMNS FROM BVOMDW))))
Ca marche sauf qu'il continue de m'afficher des vides pour les valeur NULL au lieu de None.
None n'est là que pour les tests mais au final, ce sera une date de facon à pouvoir faire un test sur les [Date Terminated].
N'étant pas familier du MDX, je suppose que j'ai du faire un truc pas bien (encore que le code ci-dessus marche mais pas completement) donc s iquelqu'un voit le probleme, ca m'aiderait beaucoup.

Merci d'avance de votre aide.