Crystal Reports report selection formula

Posted on 2009-12-17
Last Modified: 2012-06-21
I have a crystal report that prints invoice details for a date range.  I would like to exclude items that belong to a couple of specific categories and have a selling price over $20.  I want all other items in other categories to display regardless of price.
I tried to add the following in the report selection formula, but it doesn't work.
{SALES_HISTORY_HEADER.IN_DATE} in {?BV99DT09StartDate} to {?BV99DT10EndDate} and
if {INVE_WB_MAIN.TrackCat} in ["Bluetooth","Wireless Acc."] then
Help please!
Question by:Citigirlgem
    LVL 100

    Accepted Solution

    Try this

    {SALES_HISTORY_HEADER.IN_DATE} in {?BV99DT09StartDate} to {?BV99DT10EndDate}
    {INVE_WB_MAIN.TrackCat} in ["Bluetooth","Wireless Acc."]

    LVL 4

    Assisted Solution

    {SALES_HISTORY_HEADER.IN_DATE} in {?BV99DT09StartDate} to {?BV99DT10EndDate}
         ( {INVE_WB_MAIN.TrackCat} in ["Bluetooth","Wireless Acc."]
            (Not ( {INVE_WB_MAIN.TrackCat} in ["Bluetooth","Wireless Acc."] )

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
    I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now