Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Variables and counting records

Featured Replies

I know this is easy for most-but I am struggling. I have a survey with Yes, No, Na check boxes. I want to have FMI count the number of "Yes", count "no" and count "na" while skipping the empty answers for multiple records. I am guessing there is a way to use a variable or global field or something. Right now--I am creating 3 different fields for one question. The actual answer as text (checkboxes). Then a calculation field for giving a numeric value to the answer (if (benefits = "yes";1;0), then summarizing the Total of Benefits.

I know there is an easier way.

More details would be useful. In general, if you sort your answers by question and by answer, you can use a single summary field to count the number of answers in each group.

  • Author

What I would like to end up with is a Summary page:

Question 1: 50% answered "yes"; 40% answered "no" and 10% answered "na" of the 50 people answering question 1.

Question 2: 30% answered "yes"; 30% answered "no" and 40% answered "na" of 45 people answering Q2.

Right now I have coded for question 1:

Q1 Text

Q1Scale = If (Q1= "yes"; 1, 0)

Q1RecordCount = Count(Q1Scale)

Q1Total Summary(Number) = Total of Q1Scale(running) **counting yes**

Q1TotalRecord Summary(Number) = Total of (Q1RecordCount) **counting questions that were answered regardless of answer**

Q1Average Calculation(Number) = Q1Total/Q1TotalRecord

This is only giving me the percentage for the yes answers. This just seems so cumbersome to repeat for Q2 then Q3 etc...

This is only giving me the percentage for the yes answers. This just seems so cumbersome to repeat for Q2 then Q3 etc...

That's because there is a basic data structure problem with your approach. You will need to change your design.

The questions should be separate records, not separate fields.

  • Author

That's because there is a basic data structure problem with your approach. You will need to change your design.

The questions should be separate records, not separate fields.

So to clarify--if I have 40 questions there would be 40 records.

Could you recommend a good instructional manuel or training course.

if I have 40 questions there would be 40 records.

Yes, but what's more important here is that if you have 40 questions and 20 people answering them, there should be 800 individual records in the Answers table.

See also:

http://fmforums.com/forum/topic/45972-another-survey-question/

http://fmforums.com/forum/topic/49072-surveys-and-relationships/page__p__229378#entry229378

Edited by comment

Does the attached help? It's a file I found on my hard drive - don't know where it's from...

survey.zip

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.