Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Crystal Reports XI max

Posted on 2014-04-14
4
Medium Priority
?
302 Views
Last Modified: 2014-04-14
So I have a field that I am attempting to sort based on max but it gets a little tricky so asking for some input...

The field data looks like -
17p123e234-401
17p123e234-401A
17p123e234-401M
17p122f4321-505
17p122f4321-505B
17p122f4321-505R

What I am attempting to do is group by the digits before the hyphen then find the max based on the max digits to the right of the hyphen... so I end up with

17p123e234-401M
17p122f4321-505R

as the groups....

I did maximum but it took the max for the total and left me with 1 item lol

Help :)
0
Comment
Question by:mebaby333
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 23

Accepted Solution

by:
Ido Millet earned 2000 total points
ID: 39999528
Group_By formula: Split({your_field}, "-")[1]

Formula to find Max of: Split({your_field}, "-")[2]
0
 
LVL 5

Author Comment

by:mebaby333
ID: 39999557
When I attempt to put the split into the Group Expert like this
Split({FS_CustomerItem.CustomerItemNumber}, "-")[1]

it tells me there must be a constant in the place of

{FS_CustomerItem.CustomerItemNumber}
0
 
LVL 5

Author Comment

by:mebaby333
ID: 39999655
lol formula... okay
I have a serious case of Monday brain apparently today...
0
 
LVL 5

Author Closing Comment

by:mebaby333
ID: 39999758
Thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question