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!

If Then summary for groups Crystal 11

Status
Not open for further replies.

Dednutts

Technical User
Joined
May 31, 2007
Messages
6
Location
CA
Hi there,
I have a Crystal 11 report that groups total hours for 3 people. Each person has a different $ value. I need to multiply the hours * $

if ({person.lastname})="person1" then Sum ({@time}, {Person.LastName})*(12.50)
or if ({person.lastname})="person2" then Sum ({@time}, {Person.LastName})*(18.20)
else if ({person.lastname})="person3" then Sum ({@time}, {Person.LastName})*(21.25)
Thanks
 
So what have you tried, and what has failed? If you are getting an error message, post it

The formula you posted looks pretty good, just take out the or and fix your parens.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"If you have a big enough dictionary, just about everything is a word"
--Dave Barry
 
Hi Dave

"A Boolean is required Here"
if ({person.lastname})="person1" then Sum ({@time}, {Person.LastName})*(12.50)

Steve
 
Where are you going to create this formula? you should open the field explorer, right click on the word "formula" and select "new".

After you save your formula drag it onto the report canvas in the group footer section.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"If you have a big enough dictionary, just about everything is a word"
--Dave Barry
 
After creating the formula in the correct place, replace your "or" with "else".

-LB
 
Thanks everyone, I replaced "or" with "else" and it works fine.

Thanks again

Steve
 
I suggested that in my first post :)

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"If you have a big enough dictionary, just about everything is a word"
--Dave Barry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top