Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Help with charting


This topic is 5145 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

I have the following tables:

Visits[VisitID,PatientID]

Prescriptions [VisitID,DrugId,Amount]

DrugDetail [DrugID,DrugName,Category]

On the "Visits" layout I am trying to put a chart that on Axis X will show the drug Category, and on Axis Y the total amount for that category..

I've been trying for hours with all the possible combinations but all my efforts didn't help :confused:

Any suggestion?

Posted

This is not a charting problem. Unless you define some additional relationships and calculations, you cannot see sub-summarized child (Prescriptions) data from the parent (Visit) record.

It's much easier to produce such chart on a layout of Prescriptions.

Posted

Hi,

tnx or your reply.

I know it is easier on the prescription layout...but I need it on the Visits layout...that is the problem.

I tried to define all sort of relationships and calcs but still to no use...

what am I missing with this chart?

Posted

See the attached for one way to look at it. In your situation it might be best to lookup the category into the prescription, otherwise you'll need more relationships.

Another option is to script the process and trigger the script on record load. Or perhaps use a custom function along the lines of:

http://www.briandunning.com/cf/894

The bottom line here is that you cannot chart data that you cannot display.

SubSummarizeChildUgo.zip

This topic is 5145 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.