Bonne question et je à vrai dire, je sais pas.
En fait j'ai remplacé le None par ça:
WITH member [Dim Employee].[Date Terminated].[DateNone] as '"09/09/2999 00:00:00"'
Donc il faudrait peut être changer le type en date alors ? Si oui comment ?
Edit:
J'ai essayé ca :
1 2 3 4 5 6 7 8 9 10 11 12
| 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
* iif(isempty([Dim Employee].[Date Terminated].[Date Terminated]),'"09/09/2999 00:00:00"',[Dim Employee].[Date Terminated].[Date Terminated].allmembers)
* [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)))) |
Sans succès non plus snif.
En fait, je suis pas attaché au COaLESCEEMPTY ou autre, juste un moyen de remplacer les NULL par autre chose (dans l'idéal, la date ci-dessus).
Partager