Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7792 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I'm not sure where to post this but here we go:

I have designed a sales report that basically takes the information out of my database does some calculations and drops all of the information into a form which I created, which in essesnce looks like and Excel spreadsheet. Accross the top of each column are the months and the rows are labeled as separate sales categories. What I want to do is have the report print out normally Jan-Dec, then the following month I want the report to start with Feb and go to Jan. Is there an easy way to do this without changing all of my field definitions along with making 12 separate layouts? Thank you

Posted

To me, you have to reverse what is one the axis...that is, records should be months. This way, you could do a trivial serch for Jan thru Dec, Feb thru Jan, etc.

Steve

Posted

I had a similar situation, and here's the calc I used for the month headers:

the first header is Month(Status(CurrentDate)). Subsequent headers are:

If(

Month(Status(CurrentDate)) + 1 > 12,

MonthName(TextToDate( (Month(Status(CurrentDate)) + 1) - 12 & "/" & Day(Status(CurrentDate)) & "/" & Year(Status(CurrentDate)))),

MonthName(TextToDate( (Month(Status(CurrentDate)) + 1) & "/" & Day(Status(CurrentDate)) & "/" & Year(Status(CurrentDate))))

)

You would do that for Month(Status(CurrentDate)) + 2, then +3, and all the way up through +11.

Then you'll need to make similar adjustments to the data you're displaying. Self-relationships were the key to that.

HTH

This topic is 7792 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.