dbTalk Databases Forums  

NONEMPTYCROSSJOIN is returning empty data

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss NONEMPTYCROSSJOIN is returning empty data in the microsoft.public.sqlserver.olap forum.



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

Default NONEMPTYCROSSJOIN is returning empty data - 05-11-2006 , 04:02 AM






I have a query that has a NONEMPTYCROSSJOIN on the columns and rows and
yet it is returning rows that have no data against them.

If i build a pivot table in excel bringing in the same field then the
problem goes away.

Could using virtual dimensions cause this problem as this is the only
difference between my MDX query and the excel pivot table.


Is this a known bug and are there any fixes?


Reply With Quote
  #2  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: NONEMPTYCROSSJOIN is returning empty data - 05-12-2006 , 07:14 AM






I don't think the virtual dimension would cause this (althought it's
hard to say without seeing the exact environment). But my guess is that
it is more likely that Excel is using the NON EMPTY clause in front of a
standard crossjoin.

eg. NON EMPTY CROSSJOIN(...)

instead of the NONEMPTYCROSSJOIN(...) function. NONEMPTYCROSSJOIN
determines empty status by scanning the fact rows and can incorrectly
include/exclude rows in certain circumstances (mainly around calculated
members)

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

In article <1147338150.452663.155440 (AT) u72g2000cwu (DOT) googlegroups.com>,
pbuzzby (AT) gmail (DOT) com says...
Quote:
I have a query that has a NONEMPTYCROSSJOIN on the columns and rows and
yet it is returning rows that have no data against them.

If i build a pivot table in excel bringing in the same field then the
problem goes away.

Could using virtual dimensions cause this problem as this is the only
difference between my MDX query and the excel pivot table.


Is this a known bug and are there any fixes?




Reply With Quote
  #3  
Old   
Tim Dot NoSpam
 
Posts: n/a

Default Re: NONEMPTYCROSSJOIN is returning empty data - 05-15-2006 , 05:45 AM



What Darren is saying is to preface your ROWS and COLUMNS clause with NON
EMPTY

SELECT NON EMPTY { ... } ON ROWS,
NON EMPTY {... } ON COLUMNS
FROM [cube]

<pbuzzby (AT) gmail (DOT) com> wrote

Quote:
I have a query that has a NONEMPTYCROSSJOIN on the columns and rows and
yet it is returning rows that have no data against them.

If i build a pivot table in excel bringing in the same field then the
problem goes away.

Could using virtual dimensions cause this problem as this is the only
difference between my MDX query and the excel pivot table.


Is this a known bug and are there any fixes?




Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: NONEMPTYCROSSJOIN is returning empty data - 05-16-2006 , 05:02 AM



Thanks i will give this a try today


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.