Skip 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.

Converting Excel Calculation to Filemaker - Stuck

Featured Replies

  • Newbies

Hi,

I'm pretty new to filemaker and the forums so first I'd like to say hi!

Wow what a program filemaker is, I didn't know this was out there until recently, I think it's going to revolutionize my way of working and I've already made great headway on my first project that orginally resided in a excel spreadsheet, but now I'm really stuck. I thought this would be straight forward but I'm struggling to get my head around it. I'm trying to enter two values (number of visits and age) and a corresponding result be picked from an array/table it was pretty easy in excel but it's bent my brain back on itself trying to work this one out lol any advice or pointing in the right direction would be a great help. Attached pic of how it's set up in excel.

 

numberofvisits.thumb.jpg.bdd26e772853632,

I tried using Getnthrecord (number of visits) in a calculation which kind of works for to get a value of numer of visits but I'm struggling with linking this to only choose values within repective age ranges etc.

 

 

 

Edited by vuego100
pic throwing text out

Filemaker is not a spreadsheet, and things don't map 1:1 between the two. For example, the data in the "array" that you show us would be best arranged in a database table as follows:

FromAge   NumberOfVisits      Percentage
16        1                   .05
25        1                   .04
34        1                   .06
40        1                   .04
46        1                   .03
51        1                   .05
16        2                   .06
25        2                   .05
...
46        8                   .1
51        8                   .12

That is, an individual record for each summary value. This is assuming that the summary values are the 'raw" values in your database - not derived from another table that records the actual visits.

With this in place, you can lookup the value of interest using a relationship based on matching ≥FromAge and =NumberOfVisits. Or you could just perform a find for the record of interest.

 

  • 4 weeks later...
  • Author
  • Newbies

Thank you for your help. took me a while but ended up using a relationship to show the matching value, works a treat.

Thanks again.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.