dbTalk Databases Forums  

Need Help to form the MDX-Statement

comp.databases.olap comp.databases.olap


Discuss Need Help to form the MDX-Statement in the comp.databases.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
chris
 
Posts: n/a

Default Need Help to form the MDX-Statement - 11-27-2006 , 06:32 AM






Hello, I have following Situation:
I have a Dimension "SourceDirectory", whis has Elements
"SourceDirectory1", "SourceDirectory2", ... until "SourceDirectory10".

My Statement in MDX is whis:
SELECT {[Measures].AllMembers} ON columns,
{[SourceDirectory].Children} ON rows
FROM [CheckstyleError]
It works. Now, how can I select all SourceDirectories but not the
"SourceDirectory6", whis has only NULL-Values and I need't to see it in
my report.
I would be glad to have an early reply!
Thanks


Reply With Quote
  #2  
Old   
Jensch
 
Posts: n/a

Default Re: Need Help to form the MDX-Statement - 01-12-2007 , 04:53 AM






The 'NON EMPTY' should do the trick

SELECT {[Measures].AllMembers} ON columns,
NON EMPTY {[SourceDirectory].Children} ON rows
FROM [CheckstyleError]

- Jens

chris skrev:
Quote:
Hello, I have following Situation:
I have a Dimension "SourceDirectory", whis has Elements
"SourceDirectory1", "SourceDirectory2", ... until "SourceDirectory10".

My Statement in MDX is whis:
SELECT {[Measures].AllMembers} ON columns,
{[SourceDirectory].Children} ON rows
FROM [CheckstyleError]
It works. Now, how can I select all SourceDirectories but not the
"SourceDirectory6", whis has only NULL-Values and I need't to see it in
my report.
I would be glad to have an early reply!
Thanks


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.