Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difficulty filtering out null fields

Status
Not open for further replies.

mfty

Programmer
Jan 9, 2008
2
US
This is Analysis Services 2000. I do a crossjoin on two fields in one table to create my columns (mdx statement below) and sometimes one or both of these fields is null. My mdx returns results that count them, though, and I can't figure out why. here's the applicable piece of the select statement (with the filter statements i've been using to try and remove the nulls);

"SELECT NON EMPTY
{ CROSSJOIN(FILTER([Field1].MEMBERS,[Field1].CurrentMEMBER.Value <> Null),FILTER([Field2].MEMBERS,[Field2].CurrentMember.Value <> Null))
} ON COLUMNS

Any ideas?

Thanks so much
 
try a NonEmptyCrossJoin

Paul
---------------------------------------
Shoot Me! Shoot Me NOW!!!
- Daffy Duck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top