Posted on 2011-10-18
Last Modified: 2012-05-12
I'm not sure what DistinctCount does in crystal reports.  Sometimes it uses one parameter sometimes two and sometimes 3. What does it do?
Question by:vrosas_03
    1 Comment
    LVL 100

    Accepted Solution

    You are correct there can be 3 parameters.

    DistinctCount({Field}, {GroupByField},{Condition})
    {Field} - Field to count for distinct values
    {GroupByField} - A group from the report.  Counts the fields in that group.  Only works if there are groups in the report and only works inside the group
    {Condition} - A "grouping" of the {GroupByField}.  Used with Dates, DateTime, and Time fields.  Allows you to group dates into say each week, each month.
    Also used with Boolean fields.  Group based on the value or change to a value like on change to yes, on change to no.

    See Crystal Help for a further explanation.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 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

    14 Experts available now in Live!

    Get 1:1 Help Now