Help With Crystal Reports Selection Formula

I am in need of some suggestions on how to create a selection formula in Crystal Reports. I have never used a formula to filter data (Selection). I have always used the Select Expert. Here goes.

I need a formula that will return data based on 2 possible conditions.

We have a field that I will call Owner Company and another called Owner Group. I need this formula to return all data that is external to our company, but I also need to return data that IS internal to our company, but ONLY from a specific Owner Group.

So the formula would read in plain english:

IF OWNER COMPANY IS NOT EQUAL TO INTERNAL OR IF OWNER GROUP IS EQUAL TO INTERNALSUBGROUP THEN RETURN RECORDS

Hopefully this makes sense to anyone reading. If not let me know.
LVL 4
ChuckDeezelAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
{OwnerCompanyField} <> "YourCompany"
OR
{OwnerGroupField} = "YourSubGroup"

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ChuckDeezelAuthor Commented:
And then maybe have it do a
THEN 1
ELSE 0

Then I can plop into the selection expert CustomFormula = 1?

Trying this now.
0
mlmccCommented:
No, just use that formula in the selection formula

mlmcc
0
ChuckDeezelAuthor Commented:
I see. I have to check the data to confirm success.

Ill reply shortly.
0
ChuckDeezelAuthor Commented:
Selection formula worked. Thanks. I was partially on the same track as your solution. Thing is that I wasn't sure how best to implement since I had never used a formula to select. Now I know. You learn something everyday. As always thanks for the prompt reply MLMCC.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.