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.

Filter list calculation based on 2nd repetition value not being empty

Featured Replies

I have a family center database wherein people, more specifically, children often reside in multiple households. A field labled HHDType can have one of two values, "Primary" and "Additional"... which represents two types of households they could live in.

Each household has a repetitive field called activityDateSpan (allowing for up to two repetition) indicating a startDate and endDate. These dates represent the following: rep 1 = the date an individual began association within a particular household and rep2 = when the association is terminated (repetition#2).

I have a calculation called cHousehold which identifies all the possible households this person resides in, in list format in the following calculation:

cHousehold (calculation, text)

Substitute ( List (_HOUSEHOLDS::householdName ) ; ¶ ; ", " )

Here's my dilema...

If the activityDateSpan contains a value in the second repetition, I do not want these households to be include in my cHousehold calculation (another words, I don't want to include them in the list).

Any ideas on how I might accomplish this?

You can make a calculation field (say "rep2_Closed"), which would set itself to "1" (for example) in case if Repetition 2 is not empty. Then you duplicate your table in Table Graph and make a new relation between these tables: rep2_Closed=notEmpty). notEmpty field is always set to 0.

That relation would let you make a new Value List with values starting from Table1. Take a look at it in my attached file. Is that what you meant? Try to change some endDate to see what will happen.

Waiting for comments.

Household.fp7.zip

Each household has a repetitive field called activityDateSpan (allowing for up to two repetition) indicating a startDate and endDate. These dates represent the following: rep 1 = the date an individual began association within a particular household and rep2 = when the association is terminated (repetition#2).

I am not sure that's a good approach in general. Esp. if you ever want to search for StartDate > $someDate or similar.

I am not sure that's a good approach in general. Esp. if you ever want to search for StartDate > $someDate or similar.

Actually I don't see any difficulties searching exact date.

Actually I don't see any difficulties searching exact date.

The difficulty is that you cannot isolate records where start date = $someDate. A search like that in a repeating field will also find records where end date = $someDate.

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.