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

Year to date and Month to date

Status
Not open for further replies.

jjkremlin

IS-IT--Management
Sep 9, 2002
6
US
I am new to crystal and need some advice. It seems pretty easy to do.

I want to create a report showing Month to date Totals as well as Year to date Totals.
However, I only know to choose the date range by using the Select Expert option. It only allows me to choose one date range in the report. How can I do this?
 
Crystal will return only one rowset, so your methodolgy is to select year to date, and derive the month to date from the returned rowset.

If you're just showing totals, you can use a Running Total which has a Evaluate->Use a formula with {table.Datefield} in monthtodate.

Then you can limit the rows in the entire report using the Report->Edit Record Selection->Record (which is the result of using the select expert):

{table.Datefield} in yeartodate

So all totals (Insert Summary->sum) will always be the yeartodate, and you can build the monthtodate totals as required.

You might also build a Group based on the date for every month, and use Insert Summary->sum (or whatever) to demonstrate totals for every month.

-k kai@informeddatadecisions.com
 
There might be other ways to do this, but if you create one mtd report, save it under two different names. Open one, and import the other as a subreport, you should be able to change the select expert in the sub to show ytd.
just a thought.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top