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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ytd and previous ytd

Status
Not open for further replies.

kalyani9

Technical User
Nov 1, 2006
1
US
Hi all

I have report from dimensional model. For example



rows---> productline

measure ---->revenue

columns----> ytd and previous ytd



I have prompts for year and month.I need to calculate ytd and previous ytd.



Thank u in advance



Regards

Kumar
 
The following is something you can consider to get yourself started...

Say your Prompt values for year and month is as follows:

PromptYear()
PromptMonth()

Then you may be able to create calculations similar to this:

Your YTD would be: Add-Years(PromptYear(), -1)

Your Previous YTD would be:
Between Add-Years(PromptYear(), -2) and Add-Years(PromptYear(), -1)



-- JJB373 --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top