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 strongm 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
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top