dbTalk Databases Forums  

NON EMPTY processing / NON_EMPTY_BEHAVIOR

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


Discuss NON EMPTY processing / NON_EMPTY_BEHAVIOR in the microsoft.public.sqlserver.olap forum.



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

Default NON EMPTY processing / NON_EMPTY_BEHAVIOR - 11-01-2006 , 10:43 AM






Hi,

I'm getting a different result set back for a particular query which slices
on an extremely simple calculated member (the calc. member is just defined as
the All member for one of my dimensions). The query uses NON EMPTY on the
rows returned, and when run without a NON_EMPTY_BEHAVIOR hint on the calc.
member, it returns 10 rows. When run with a hint (NON_EMPTY_BEHAVIOR={} even
works for this), it returns 20 rows.

I've determined from the subject matter database that 20 rows is correct.
Anyone else have any experience with this problem, or know why I might be
experiencing it?

Thanks,

Will.

Reply With Quote
  #2  
Old   
Will Alber
 
Posts: n/a

Default RE: NON EMPTY processing / NON_EMPTY_BEHAVIOR - 11-01-2006 , 10:55 AM






Note - am using Analysis Services 2005.

"Will Alber" wrote:

Quote:
Hi,

I'm getting a different result set back for a particular query which slices
on an extremely simple calculated member (the calc. member is just defined as
the All member for one of my dimensions). The query uses NON EMPTY on the
rows returned, and when run without a NON_EMPTY_BEHAVIOR hint on the calc.
member, it returns 10 rows. When run with a hint (NON_EMPTY_BEHAVIOR={} even
works for this), it returns 20 rows.

I've determined from the subject matter database that 20 rows is correct.
Anyone else have any experience with this problem, or know why I might be
experiencing it?

Thanks,

Will.

Reply With Quote
  #3  
Old   
Deepak Puri
 
Posts: n/a

Default Re: NON EMPTY processing / NON_EMPTY_BEHAVIOR - 11-01-2006 , 01:56 PM



Hi Will,

Could you reproduce this behavior in a sample Adventure Works query?


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #4  
Old   
Will Alber
 
Posts: n/a

Default Re: NON EMPTY processing / NON_EMPTY_BEHAVIOR - 11-02-2006 , 11:47 AM



Hi Deepak, thanks for you response.

I've thus far been unable to reproduce a similar problem against the
Adventure Works cube. Further investigation by a colleague has brought up
the possibility that this may well only manifest itself if multiple
attributes and/or hierarchies from the same dimension are used to specify the
view.

Some sample MDX that repro's the problem against our cube is given below.
With the calculation in the slice commented out, we get 105 rows returned,
when it is used, we get 65. Note that the [Is Live In Link] and [Carrier
Type] attribute hierarchies are part of the [Container Load] dimension that
the calculation is performed on. I appreciate that the query, without a
cube, is of little use, but am hoping that it might 'ring-a-bell' as it were.

WITH MEMBER [Container Load].[Container Load Status].[AllOfEm] AS [Container
Load].[Container Load Status].[All]
SELECT
{[Container Load Count]} ON COLUMNS,
NON EMPTY
{[Trade].[EAST_AFRICA] * [Is Live In Link].[All].Children * [Carrier
Type].[All].Children * [Container Number].[All].Children} ON ROWS
FROM
DW_SM
WHERE
(
[Voyage Date].[August, 2006],
[Booking Type].[Import Booking]
,[Container Load].[Container Load Status].[AllOfEm]
)

"Deepak Puri" wrote:

Quote:
Hi Will,

Could you reproduce this behavior in a sample Adventure Works query?


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.