ssas - Applying MEMBER_CAPTION to the return value of ClosingPeriod -


the following not error, or bug, returns blank result set.

i realize there other functions can use sake of experimentation i'd stick closingperiod

why returning blank?
how amend returns yesterday?

with member [date].[date - calendar month].[member_caption]     closingperiod(         [date].[date - calendar month].[calendar day]         ).member_caption select      non empty          [date].[date - calendar month].[member_caption]     on columns [ourcube]  

edit

the msdn documentation closingperiod function is here , states:

• if level expression specified, closingperiod function uses dimension contains specified level , returns last sibling among descendants of default member @ specified level.

• if both level expression , member expression specified, closingperiod function returns last sibling among descendants of specified member @ specified level.

i guess because default member of [date].[date - calendar month] not in [calendar day] level; equivalent :

closingperiod( [date].[date - calendar month].[calendar day], null ) 

obsviously null has no descendants , closingperiod not return anything. perhaps want like:

closingperiod(    [date].[date - calendar month].[calendar day],   [date].[date - calendar month].defaultmember  ) 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -