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.

Need a calc field to.. count # fields same record are blank?

Featured Replies

Hope this is Left brain stuff..

 

I have a single record, there are 5 global field1, field2 field3 etc

I need  a calc global field, to show how many are empty of those filled in

 

Can't figure..

TIA

R

to show how many are empty of those filled in

 

Not sure I understand this last sentence; I assume you want to count the number of empty globals:

Sum
( 
  IsEmpty ( globalField1 ) ;
  IsEmpty ( globalField2 ) ; 
  IsEmpty ( globalField3 ) ; 
  IsEmpty ( globalField4 ) ; 
  IsEmpty ( globalField5 )
)

ValueCount ( List ( globalField1 ; globalField2 ; globalField3 ; globalField4 ; globalField5 ) )

I was thinking that Rod was looking for a way to know which fields were empty.

 

 

Case ( IsEmpty ( globalField1 ) ; "globalField1" & ", " ; "" ) &
Case ( IsEmpty ( globalField2 ) ; "globalField2" & ", " ; "" ) &
Case ( IsEmpty ( globalField3 ) ; "globalField3" & ", " ; "" ) &
Case ( IsEmpty ( globalField4 ) ; "globalField4" & ", " ; "" ) &
Case ( IsEmpty ( globalField5 ) ; "globalField5" & ", " ; "" )

Rod said, "...to show how many are empty of those filled in"

 

Count ( field1 ; field2 ; field3 ; field4 ; field5 ) will count how many have any value so if you have 5 fields are want to know how many are empty, it could be:

 

5 - Count ( field1 ; field2 ; field3 ; field4 ; field5 )

 

Don't ya just love how there are so many approaches with FileMaker?  Take your pick, Rod!!   :laugh2: 

Don't ya just love how there are so many approaches with FileMaker?  Take your pick, Rod!!   :laugh2: 

 

Yeah, nice to have so many approaches towards an unidentified goal.  :twitch:

Actually I thought Rod was very clear in his need. 

  • Author

Thanks you all...

 

I liked this one

 

Sum
( 
 
IsEmpty ( globalField1 ) ;
  IsEmpty ( globalField2 ) ; 
 
IsEmpty ( globalField3 ) ; 
 
IsEmpty ( globalField4 ) ; 
 
IsEmpty ( globalField5 )
)

 

I might allow 5 agents to log in..

As agents log in, I populate one of the GlobalFields with their persistent_ID  ( is that long not used for anything id)...

I think this calc field now, will let me have a count of still avail agents or if all are agents log out, maybe run another admin routine.

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.