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

Showing month in the chart

Status
Not open for further replies.

russula

Programmer
Nov 30, 2006
33
DE
Hello everybody!
Sorry if it is already discussed but I didn't managed to find such topic.
I have data per month and need to show it in the chart. The problem is that I have only month number and I should show date for last 6 month. For example, in February I need to show date for 8, 9, 10, 11, 12 and 1 month etc.... In the chart I need to show the month name and year (August 2006 for 8 for example). The problem is with the format and order. If the format of "month-year" is string, the data are ordered alphabetically, if format of "month-year" is Date, I have to put Day such a "01 August 2006", but I don't need this Day number. I can't leave "in original order" because the data are grouped and will be repeated several times.
So how to remove this Day from the date format in the chart? I didn't find options "Format" as it can be done for normal field in the report in this case? Have you any idea?

Thanks in advance.
 
Try ToText({your.date}, "yyyy MM", or ToText({your.date}, "yy MM" if you have no dates before 2000.

It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods change between versions, and higher versions have extra options.



[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top