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.

Jobs

Order of values in the Legend of a stacked bar graph (Crystal 9)

Order of values in the Legend of a stacked bar graph (Crystal 9)

(OP)
My stacked bar graph Legend, for a row that is ordered specifically and consists mostly of month names, sorts nearly correctly for one set of data (only a straggler is out of order), but for another, January appears after December. I've read threads in Google and in Tek-Tips, to no avail.

RE: Order of values in the Legend of a stacked bar graph (Crystal 9)

Hi, If your data starts at the end of year 1 into year 2, could your groups be Year & month rather than Months (1 -12)?
This would make Jan(month 1 year 1) appear before Dec(month 12 year 2), where you just want Jan-Dec - regardless of year.
Instead of group by month, group by month number using Datepart:

DatePart ("m",{yourdatefield})Returns just the month number 1-12
so
DatePart("m",(currentdate)) returns 10

RE: Order of values in the Legend of a stacked bar graph (Crystal 9)

(OP)
I should have been clearer that the values are literal strings, not dates, and do not correspond directly to dates. For this purpose, they could be "apple, box, cat, dog, 2015, 2016, xylophone". Also, my record selection criteria include only one year.

RE: Order of values in the Legend of a stacked bar graph (Crystal 9)

Then I'd double check the source data.
Check there's not a space before the "J" in January.

RE: Order of values in the Legend of a stacked bar graph (Crystal 9)

(OP)
For one set of data, January is in the right place; for another set, it appears after December. The field being reported on is a single selection field (drop-down).

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!

Resources

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