Solved

Crystal Reports XI max

Posted on 2014-04-14
4
280 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
  • 3
4 Comments
 
LVL 22

Accepted Solution

by:
Ido Millet earned 500 total points
Comment Utility
Group_By formula: Split({your_field}, "-")[1]

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

Author Comment

by:mebaby333
Comment Utility
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
Comment Utility
lol formula... okay
I have a serious case of Monday brain apparently today...
0
 
LVL 5

Author Closing Comment

by:mebaby333
Comment Utility
Thanks
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now