dbTalk Databases Forums  

strange behavior of filter() in SSAS

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


Discuss strange behavior of filter() in SSAS in the microsoft.public.sqlserver.olap forum.



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

Default strange behavior of filter() in SSAS - 01-04-2006 , 04:38 PM






I am executing the following MDX against Adventure Works cube:

with member Measures.Test as
sum(
filter(
Descendants([Promotion].[Promotions], [Promotion].[Promotions].[Promotion
Name], SELF)
,false
)
,1
)
select
[Promotion].[Promotions].members on rows
,[Reseller].[Reseller Type].members on columns
from
[Adventure Works]
where
([Measures].[Test]
,[Date].[Calendar].[Calendar Year].&[2003])

I am expecting CellSet with all nulls, but instead I am getting CellSet with
some rows filled with "1"s.

If I change SUM function to COUNT, I am getting "0"s everywhere.

Does anybody know what is happening? Is that correct behavior of filter() or
not?

Thanks a lot in advance
Andrey

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.