×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Cross Tab date Selection?

Cross Tab date Selection?

Cross Tab date Selection?

(OP)
I have a cross tab that compares my customer type sales yearly, what I would like to do is be able to compare it monthly for example I want to compare 2018 Jan - May with 2019 Jan - May. Any suggestions how to do this?

My record selection is this:
{INVOICE.SHIPPED_DT} in {?Starting Date} to {?Ending Date} and
not {ORDERHDR.TEMPSAVE} and
not {ORDERHDR.CANCELLED} and
not {ORDERHDR.PROFORMA} and
not {INVOICE.BADDEBT_FL}

My Parameter Field is :
Starting Date
Ending Date
I have Date interval set to Yearly

Any info would be appreciated Thanks

RE: Cross Tab date Selection?

Assuming people would enter Starting Date for the Beginning Year of the range, and the End Date for Ending Year of the range, and that you would be looking at whole, nor partial months, change your record selection to:

(
{INVOICE.SHIPPED_DT} in {?Starting Date} to date(year({?Starting Date}), month({?Ending Date})+1,1)-1 or
{INVOICE.SHIPPED_DT} in date(year({?Ending Date}),month({?Starting Date}),1) to {?Ending Date}
) and
not {ORDERHDR.TEMPSAVE} and
not {ORDERHDR.CANCELLED} and
not {ORDERHDR.PROFORMA} and
not {INVOICE.BADDEBT_FL}

Assuming the date by year is your row field, if you want to compare months within each year, add the date also as a column field and set it to monthly.

-LB

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close