Skip to Content
author's profile photo Former Member
Former Member

How to create a Select in Formula Workshop - Record selection editor

In the Formula Workshop u2013 Record Selection Formula Editor I am trying to write a formula to exclude certain customer ids. Iu2019m getting errors when I click the Check formula button. The statement is below, any suggestions?

I dont think I can use the Select statement in crystal as you would in SQL but how should I write it in crystal format?

not in (select { STATISTICS.custid} from

where { STATISTICS.date_reg} >= '27-may-2011' and { STATISTICS.date_reg} < '30-sep-2011')

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2012 at 03:59 PM

    Hi,

    You can try the below logic:

    STATISTICS.date_reg} >= '27-may-2011' and { STATISTICS.date_reg} < ' 27-June-2011'

    I guess you are trying to apply this condition.

    Here in selection formula you need not to give select and from.

    Cheers,

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2012 at 04:01 PM

    Hi Jasondeacon,

    As you are using not in the selection you need to change the condition. You need to write the formula in Record Selection Formula as follows:

    STATISTICS.date_reg} <= '27-may-2011' and { STATISTICS.date_reg} > '

    Thanks,

    Nrupali

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2012 at 04:04 PM

    Hi,

    Yes, you need to reverse the condition.

    Cheers,

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 08, 2012 at 01:11 PM

    Thanks for the replies but the selection is a bit more complex than that so has been put on hold for now.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.