dbTalk Databases Forums  

ParallelPeriod

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


Discuss ParallelPeriod in the microsoft.public.sqlserver.olap forum.



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

Default ParallelPeriod - 11-23-2006 , 04:28 PM






Hi All,

I have a calculated member [date].[Year - Month - Day].[CurrentDay] as
'[Date].[Year - Month - Day].[Day].&[2006]&[10]&[18]'

Use the following query:
select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1, [Date].[Year -
Month - Day].[CurrentDay])} on 1
from [TestCube]

The result is nothing, no null values or errors. When I change the query
like this:
select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1, [Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18])} on 1
from [TestCube]

I see result, i.e. the count on 18 september 2006. How is this possible?

Q

Reply With Quote
  #2  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: ParallelPeriod - 11-23-2006 , 08:29 PM






I understand [CurrentDay] is another member. It is not the referenced member
itself.

So, I tested as following,

WITH MEMBER [date].[Year - Month - Day].[CurrentDay] as '[Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18].UniqueName'
Select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1,
StrToMember([Date].[Year - Month - Day].[CurrentDay]))} on 1
from [TestCube]

Ohjoo

"Qbee" <Qbee (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi All,

I have a calculated member [date].[Year - Month - Day].[CurrentDay] as
'[Date].[Year - Month - Day].[Day].&[2006]&[10]&[18]'

Use the following query:
select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1, [Date].[Year -
Month - Day].[CurrentDay])} on 1
from [TestCube]

The result is nothing, no null values or errors. When I change the query
like this:
select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1, [Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18])} on 1
from [TestCube]

I see result, i.e. the count on 18 september 2006. How is this possible?

Q



Reply With Quote
  #3  
Old   
Qbee
 
Posts: n/a

Default Re: ParallelPeriod - 11-24-2006 , 12:54 AM



Yes, you are correct.

But I don't see any results. Is it possible to see which date is referenced
on the rows? I know there are some gaps in the data so it can be possible
that it is referencing an empty cell.

Q

"Ohjoo Kwon" wrote:

Quote:
I understand [CurrentDay] is another member. It is not the referenced member
itself.

So, I tested as following,

WITH MEMBER [date].[Year - Month - Day].[CurrentDay] as '[Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18].UniqueName'
Select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1,
StrToMember([Date].[Year - Month - Day].[CurrentDay]))} on 1
from [TestCube]

Ohjoo

"Qbee" <Qbee (AT) discussions (DOT) microsoft.com> wrote in message
newsD1F65C4-12BF-47AE-9654-45E8F1E0305D (AT) microsoft (DOT) com...
Hi All,

I have a calculated member [date].[Year - Month - Day].[CurrentDay] as
'[Date].[Year - Month - Day].[Day].&[2006]&[10]&[18]'

Use the following query:
select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1, [Date].[Year -
Month - Day].[CurrentDay])} on 1
from [TestCube]

The result is nothing, no null values or errors. When I change the query
like this:
select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1, [Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18])} on 1
from [TestCube]

I see result, i.e. the count on 18 september 2006. How is this possible?

Q




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

Default Re: ParallelPeriod - 11-24-2006 , 01:29 AM



to be complete:

with member [date].[Year - Month - Day].[CurrentDay] as '[Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18]'

select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1,
[Date].[Year - Month - Day].[CurrentDay])} on 1
from [TestCube]

No results.


select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1, [Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18])} on 1
from [TestCube]

Results.

Q

"Qbee" wrote:

Quote:
Yes, you are correct.

But I don't see any results. Is it possible to see which date is referenced
on the rows? I know there are some gaps in the data so it can be possible
that it is referencing an empty cell.

Q

"Ohjoo Kwon" wrote:

I understand [CurrentDay] is another member. It is not the referenced member
itself.

So, I tested as following,

WITH MEMBER [date].[Year - Month - Day].[CurrentDay] as '[Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18].UniqueName'
Select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1,
StrToMember([Date].[Year - Month - Day].[CurrentDay]))} on 1
from [TestCube]

Ohjoo

"Qbee" <Qbee (AT) discussions (DOT) microsoft.com> wrote in message
newsD1F65C4-12BF-47AE-9654-45E8F1E0305D (AT) microsoft (DOT) com...
Hi All,

I have a calculated member [date].[Year - Month - Day].[CurrentDay] as
'[Date].[Year - Month - Day].[Day].&[2006]&[10]&[18]'

Use the following query:
select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1, [Date].[Year -
Month - Day].[CurrentDay])} on 1
from [TestCube]

The result is nothing, no null values or errors. When I change the query
like this:
select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1, [Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18])} on 1
from [TestCube]

I see result, i.e. the count on 18 september 2006. How is this possible?

Q




Reply With Quote
  #5  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: ParallelPeriod - 11-26-2006 , 08:12 AM



I don't know the mechanism of the internal dimension path for calculated
members.

For example, if you test [date].[Year - Month -
Day].CurrentMember.Properties("ID"),
the values are much different between regular members and calculated
members.

It looks like that calculated members do not be considered as normal members
within a hierarchy.
For example, [CurrentDay].Parent.Children does not contain [CurrentDay].

I hope someone has more good information on this.

Ohjoo

"Qbee" <Qbee (AT) discussions (DOT) microsoft.com> wrote

Quote:
to be complete:

with member [date].[Year - Month - Day].[CurrentDay] as '[Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18]'

select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1,
[Date].[Year - Month - Day].[CurrentDay])} on 1
from [TestCube]

No results.


select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1, [Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18])} on 1
from [TestCube]

Results.

Q

"Qbee" wrote:

Yes, you are correct.

But I don't see any results. Is it possible to see which date is
referenced
on the rows? I know there are some gaps in the data so it can be possible
that it is referencing an empty cell.

Q

"Ohjoo Kwon" wrote:

I understand [CurrentDay] is another member. It is not the referenced
member
itself.

So, I tested as following,

WITH MEMBER [date].[Year - Month - Day].[CurrentDay] as '[Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18].UniqueName'
Select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1,
StrToMember([Date].[Year - Month - Day].[CurrentDay]))} on 1
from [TestCube]

Ohjoo

"Qbee" <Qbee (AT) discussions (DOT) microsoft.com> wrote in message
newsD1F65C4-12BF-47AE-9654-45E8F1E0305D (AT) microsoft (DOT) com...
Hi All,

I have a calculated member [date].[Year - Month - Day].[CurrentDay]
as
'[Date].[Year - Month - Day].[Day].&[2006]&[10]&[18]'

Use the following query:
select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1,
[Date].[Year -
Month - Day].[CurrentDay])} on 1
from [TestCube]

The result is nothing, no null values or errors. When I change the
query
like this:
select { [Measures].[Count] } on 0
, { ParallelPeriod([Date].[Year - Month - Day].[Month], 1,
[Date].[Year -
Month - Day].[Day].&[2006]&[10]&[18])} on 1
from [TestCube]

I see result, i.e. the count on 18 september 2006. How is this
possible?

Q






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.