Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create YTD previous year calculated member?

Status
Not open for further replies.

Elmiira

Programmer
Feb 27, 2007
2
0
0
FI
Hi,


I have a promblem with combining two types of calculated members.

Year-to-Date
Code:
sum(YTD([Time].[Hierarchy].currentmember),[Measures].[Invoicing])

Previous year as whole
Code:
(ParallelPeriod([Time].[Year].[Year],1,[Time].[Year].currentmember),[Measures].[Invoicing])

Could anyone help me by telling where should I put ParallelPeriod function in YTD clause?

Thank you in advance.

Br, Elmiira
 
Try this
Code:
Sum(
    PeriodsToDate(
  		  [Date Dimension].[Fiscal Calendar].[Fiscal Year], 
		  ParallelPeriod(
                		 [Date Dimension].[Fiscal Calendar].[Fiscal Year],1,
                		 [Date Dimension].[Fiscal Calendar].CURRENTMEMBER
				)
            	),
		[Measures].[Your Measure]
)

Shoot Me! Shoot Me NOW!!!
- Daffy Duck
 
Thank you :) Daffy Duck!

It rocks and sings.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top