Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Crystal Reports--specifying a specific detail row to select

Posted on 2016-08-10
2
Medium Priority
?
92 Views
Last Modified: 2016-08-10
I have a Crystal Report that is grouped by a Medical Record Number for patients--and an end user specifies a time frame to pull all visits for patients within a date range.  Within those patients, there will be multiple visits within our hospital.  

Right now, under the Group Section--it is simply pulling the 1st location in the DB.  For example, I run the report and select the last month;

Patient Zero
---was seen in Emergency Room {Location.ER}
---was seen in Medical Surgical Floor {Location.MedSurg}
---was seen in Lab {Location.Lab}

Since it's grouped under the Patient Zero medical record number, it just displays the {Location.ER}.  Desired behavior would be a prioritized list, so it displays the most applicable location.  For example;

IF Patient Zero was seen in ER, MedSurg and Lab--then only display MedSurg.  

I would then set the priority locations in the order I choose.  The end game of this--is we send out this list for a survey for our patients--and we value surveys in one area over another.  Thanks for any help.  I do have SQL experience and access to the DB if it comes to that.
0
Comment
Question by:CMCITD
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 41750648
Try this

Set a CUSTOM sort order for the locations so the highest priority locations sort first
Put the location in the group header
Hide the details

mlmcc
0
 

Author Closing Comment

by:CMCITD
ID: 41750878
Simple, easy--should have spotted that way myself.  There I was about to write a formula to set priority status to each word...

Thanks!
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

715 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