dbTalk Databases Forums  

Balance First day of year

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


Discuss Balance First day of year in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
john.r.carter@bankofamerica.com
 
Posts: n/a

Default Balance First day of year - 01-25-2006 , 02:42 PM






Does anyone know how to get the value of a measure from the first day
of every year.
I tried the mdx query below, however I get the opening balance for 2006
for every year. What I would like is the opening balance for every year
I have in my time dimension.

(openingperiod([Day],[2006]), [Measures].[Net Front End Cash Fee Amt])

Thanks,
John C


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

Default Re: Balance First day of year - 01-25-2006 , 06:31 PM






Hi John,

You didn't describe the time hierarchy, but maybe:

Quote:
(OpeningPeriod([Day],
Ancestor([Time].CurrentMember, [Time].[Year])),
[Measures].[Net Front End Cash Fee Amt])
Quote:

- 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.