There's the running-total function, but it occurs to me that it is possible that your question is actually more complex than that and, consequently, you might want to describe in more detail what problem you are encountering.
When you work with the relative time measures you need to understand that they contain a time element in addition to the fact itself. Using them with your time dimension what can appear to be weird results if you don't keep in mind that the report is going to show you values only for those dates in the scope of the relative time period as set by the as of date setting.
Here's a fragment of a list report for a CA server where the as of date is April 15,2012.
It has a calculation which uses an expression which calculates the running total of the YTD relative time measure of a measure and another one which calculates the running total of the prior YTD.
running-total ( SLS_SALES_FACT.QUANTITY.YTD)
------------------------------
IAN HENDERSON
------------------------------