Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group by first letter of a field 1

Status
Not open for further replies.

JCook23

Technical User
May 19, 2004
39
US
All of our invoices begin with H, C or 0. I want to do a group on armast.finvoice but only by the first letter. That way I can sum the amounts of all 'H' invoices, etc. How can I accomplish this?

Jeff
 
Create a formula that returns just the first letter of the field like this:

@Invoice_First_Letter
Code:
{table.invoice}[1]

Now create a new group and use the formula as the field.
If you have other groups already, you will need to move the group up in the grouping order so that it is where you need it to be.



~Brian
 
Another means would be to use a cross-tab.

And here's another means for getting the first character:

Insert->Field Object->Right click Formula Fields and select New->Name the field and place something like:

left({table.invoice},1)

Now select Insert->Cross-tab

Place the formula field in the Rows, and the amount to sum in the summarized fields.

This will produce a summary report.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top