dbTalk Databases Forums  

Calculated measure should return aggregation from different level

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


Discuss Calculated measure should return aggregation from different level in the microsoft.public.sqlserver.olap forum.



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

Default Calculated measure should return aggregation from different level - 08-26-2004 , 05:24 PM






I have seen this before but have forgotten how it hangs together.. perhaps
someone with better memory could help :-)

I have fact data captured per quarter, it obviously doesn't make sense to
just some this up if looking it at from the Year dimension.. what I want to
do is just take the value at the last quarter for that year.. if looking at
the value finer grained than a quarter, say month, I want to just take the
value for the quarter preceding that month..

How do can I navigate back and forward and up and down the Time dimesion
like this?

I presume I start with something like

iif(Time.CurrentMember.Level.Name = "Year"...

thanks



Reply With Quote
  #2  
Old   
Bill Cheng
 
Posts: n/a

Default RE: Calculated measure should return aggregation from different level - 08-27-2004 , 03:10 AM






Hi Giri,

I am afraid that I do not understand you quite well. Are you writing an MDX
based on a cube? Also what is the meaning of "How do can I navigate back
and forward and up and down the Time dimesion like this?" Can you
illustrate with some sample data?

Have you checked LastChild function?

Bill Cheng
Microsoft Online Partner Support
Get Secure! – www.microsoft.com/security
This posting is provided “as is” with no warranties and confers no rights.
--------------------
Quote:
Reply-To: "Giri" <gtharman (AT) newsgroups (DOT) nospam
From: "Giri" <gtharman (AT) newsgroups (DOT) nospam
Subject: Calculated measure should return aggregation from different level
Date: Thu, 26 Aug 2004 23:24:28 +0100
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <#quTxs7iEHA.396 (AT) TK2MSFTNGP12 (DOT) phx.gbl
Newsgroups: microsoft.public.sqlserver.olap
NNTP-Posting-Host: dsl-217-155-241-94.zen.co.uk 217.155.241.94
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP12
.phx.gbl
Quote:
Xref: cpmsftngxa10.phx.gbl microsoft.public.sqlserver.olap:53027
X-Tomcat-NG: microsoft.public.sqlserver.olap

I have seen this before but have forgotten how it hangs together.. perhaps
someone with better memory could help :-)

I have fact data captured per quarter, it obviously doesn't make sense to
just some this up if looking it at from the Year dimension.. what I want
to
do is just take the value at the last quarter for that year.. if looking
at
the value finer grained than a quarter, say month, I want to just take the
value for the quarter preceding that month..

How do can I navigate back and forward and up and down the Time dimesion
like this?

I presume I start with something like

iif(Time.CurrentMember.Level.Name = "Year"...

thanks





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

Default Re: Calculated measure should return aggregation from different level - 08-30-2004 , 04:15 PM



Don't worry sorted it out after digging around myself..

Used Dim.CurrentMember.Level.Name to check to see what level it was and then
used a mix of Parent, LastChild etc..

Thanks anyway

""Bill Cheng"" <billchng (AT) online (DOT) microsoft.com> wrote

Quote:
Hi Giri,

I am afraid that I do not understand you quite well. Are you writing an
MDX
based on a cube? Also what is the meaning of "How do can I navigate back
and forward and up and down the Time dimesion like this?" Can you
illustrate with some sample data?

Have you checked LastChild function?

Bill Cheng
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| Reply-To: "Giri" <gtharman (AT) newsgroups (DOT) nospam
| From: "Giri" <gtharman (AT) newsgroups (DOT) nospam
| Subject: Calculated measure should return aggregation from different
level
| Date: Thu, 26 Aug 2004 23:24:28 +0100
| Lines: 19
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
| Message-ID: <#quTxs7iEHA.396 (AT) TK2MSFTNGP12 (DOT) phx.gbl
| Newsgroups: microsoft.public.sqlserver.olap
| NNTP-Posting-Host: dsl-217-155-241-94.zen.co.uk 217.155.241.94
| Path:

cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP12
phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.sqlserver.olap:53027
| X-Tomcat-NG: microsoft.public.sqlserver.olap
|
| I have seen this before but have forgotten how it hangs together..
perhaps
| someone with better memory could help :-)
|
| I have fact data captured per quarter, it obviously doesn't make sense
to
| just some this up if looking it at from the Year dimension.. what I want
to
| do is just take the value at the last quarter for that year.. if looking
at
| the value finer grained than a quarter, say month, I want to just take
the
| value for the quarter preceding that month..
|
| How do can I navigate back and forward and up and down the Time dimesion
| like this?
|
| I presume I start with something like
|
| iif(Time.CurrentMember.Level.Name = "Year"...
|
| thanks
|
|
|




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.