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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to group but no options

Status
Not open for further replies.

brecat77

IS-IT--Management
Feb 27, 2008
28
US
my formula reads like this but i need to group by this formula and it does not show up to group by it.

if GroupName ({oe_line_1000.budget_code}) startswith "P"

then

left(GroupName ({oe_line_1000.budget_code}),5)

else

left(GroupName ({oe_line_1000.budget_code}),4)
 
ok, i figured out that i cannot group by a group. what i need to do is group by the first 5 places if it begins with a P and by the first 4 if it does not.
 
Please explain what you did so the post becomes useful to others. Generally you should use the field itself rather than the groupname in formulas. So far, I have never found a reason to use a groupname in a formula for anything.

-LB
 
i ennded up using the following formula and it worked

if {oe_line_1000.budget_code} startswith "P"

then

left({oe_line_1000.budget_code},5)

else

left({oe_line_1000.budget_code},4)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top