Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Add total for groups

Add total for groups

Add total for groups

Hi, I have a report with 4 groups:

Billing Code

The columns for this report are broken down into "patient types" like Outpatient or Inpatient. In my original report, I did not have the Billing Code group (was added in recently) and I just used a formula to filter out the patient type (ex: PtType = "O" then 1 and used the summary function with that formula to add it all up). The problem with the Billing Code is that there can be multiple codes for an exam. I don't want to count the patient type multiple times. For example, I might have ExamA with a total count of 4 but has 10 billing codes. I want to count the 4 but not the 10 in my total.

Any suggestions are greatly appreciated.


RE: Add total for groups

If there is not a unique identifier for the exam, then you can create one with a formula like:
{ExamType}&' '&{ClientID}&' '&{ExamDate}

Then do a DistinctCount of that formula or the unique identifier.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close