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

Selecting Duplicate Date Records in a Group

I have a report that looks like this

patient name Program name Date of service

Primary Care (group 1)

Dr. John Smith (group 2)

Jane Doe (group 3)

Jane Doe primary care 1/1/15

Jane Doe primary care 1/2/15

Jane Doe primary care 1/2/15

Jack Black

Jack Black primary care 1/2/15

Jack Black primary care 1/17/15

I want a way to select records in patient group (group 3) where the patient had more than one service in a day. So in my limited example the only records I want to show are

Primary Care (group 1)

Dr.. John Smith (group 2)

Jane Doe (group 3)

Jane Doe primary care 1/2/15

Jane Doe primary care 1/2/15

I have been able to use a running total to calculate the number of distinct dates per group, but I need a way to select repeat dates per group. Thanks for the help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 14, 2015 at 01:12 PM

    Hi Nate,

    You can create a group Group 4 on the Date field.

    Add the below code to Select Expert... -> Group:

    Count ( {database field used for the name}, {Group 4 field}) > 1

    - Nrupal

    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.