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!

Start of the year in crosstab

Status
Not open for further replies.

nb4884

IS-IT--Management
Aug 2, 2010
141
US
Hi All,

Wanted to know if i can have my own start of the year in cross tab report.

For example if i have projent in row and start date in column of a cross tab and i want to summarize the data based on years. If i select year in the drop down , is there a way i could get the data starting from a particular month ie 1 april to 31 march data to be in one column since our fiscal year is 1april to 31 march . And similarily data of next fiscal year in next column?

Kindly suggest
 
You could use a formula field to adjust the date, subtract three months using DateAdd.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
Sure, you just need to create a formula to contain the fiscal year and then use that in your cross tab. For example, for a fiscal year staring april 1:

if month({table.datefield}) >= 4 then year({table.datefield})+1
else year({table.datefield})






Howard Hammerman,
Crystal Training and Crystal Material
On-site classes and one-on-one coaching
Low-cost telephone/email support
FREE independent Crystal newsletter
howard@hammerman.com
800-783-2269
 
Or you could use:

"FY "+totext(year({table.date}+275),"0000")

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top