Results 1 to 4 of 4
-
10-12-2012, 12:50 PM #1FREE Member
- Join Date
- Sep 2012
- Posts
- 23
- Location
- Phoenix, AZ USA
- FileMaker Version
- FM 12
- OS
- Windows
- Skill Level
- Intermediate
Creating a Report with Calculations
I will try and explain this the best I can as I am newer to FileMaker Pro 11.
I have a report created that shows the results of pregnancy test (radio button) and a retest (also a radio button). What I would like to do is create one field that pulls the results of the first pregnancy test unless there is a restest, then it would pull from that.
Does anyone know how I would do that?
Thanks!
-
10-12-2012, 02:15 PM #2Senior Moderator - Consultant
- Join Date
- Aug 2006
- Posts
- 10,867
- Location
- New York and Nassau County, NY, USA
- FileMaker Version
- FM 9 Developer, FM 9 Server, FM 10 Developer, FM 10 Server, FM 11, FM 11 Server, FM 12 Developer, FM 12 Server, Older Versions 2-8
- OS
- Windows & Mac
- Skill Level
- Developer
Re: Creating a Report with Calculations
Define a calculation field, result type either "text" or "date" or "number" depending on what the "results of pregnancy test" and "retest" actually are —— whether THEY are dates, text strings, or numbers.
The formula for that calculation field should be:
Case (IsEmpty (RetestField); PregnancyTestField; RetestField)
Put that new calcfield on your report.
-
11-01-2012, 04:42 PM #3FREE Member
- Join Date
- Sep 2012
- Posts
- 23
- Location
- Phoenix, AZ USA
- FileMaker Version
- FM 12
- OS
- Windows
- Skill Level
- Intermediate
Re: Creating a Report with Calculations
It's a text field. Right now this is the calculation that I have.
If ( PT Result = "Positive" ; "Positive") & If ( PT Result = "Negative" ; "Negative") & If (PT Result = "Negative" and RT Results = "Positive" ; "Positive") & If (PT Result = "Negative" and RT Results = "Negative" ; "Negative")
It's working for the PT Result but it's not working for the RT Results. Do you have any idea why or how I could fix it?
-
11-01-2012, 05:15 PM #4FREE Member
- Join Date
- Sep 2012
- Posts
- 23
- Location
- Phoenix, AZ USA
- FileMaker Version
- FM 12
- OS
- Windows
- Skill Level
- Intermediate
Re: Creating a Report with Calculations
I've actually gotten it to work by using this calculation - If ( PT Result = "Positive" ; "Positive" ) & If ( PT Result = "Negative" ; "Negative") & If (PT Result = "Positive" or RT Results = "Positive" ; "Positive") & If (PT Result = "Negative" or RT Results = "Negative" ; "Negative")
However, it's showing PositivePositive or NegativeNegative for clients who have only been in for a PT Result. Any ideas on how to fix it?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Creating a functioning Prepay Account for customers using calculations and summaries
By dorian_6_7 in forum FileMaker Pro 10Replies: 1Last Post: 09-21-2010, 03:55 PM -
Report calculations in SubTotals
By saubolle in forum FileMaker Pro 10Replies: 3Last Post: 08-13-2009, 01:19 PM -
exporting summary report and calculations
By DBMan in forum Exporting and ImportingReplies: 1Last Post: 09-15-2008, 02:47 PM -
Creating a Report With Calculations
By scarysnow in forum FileMaker Pro 9Replies: 0Last Post: 04-02-2008, 08:21 AM -
Calculations for report
By dbdesign in forum Calculations and Define FieldsReplies: 0Last Post: 03-24-2006, 11:30 AM





Reply With Quote




Bookmarks