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.

Calc for export

Featured Replies

I have a field called Sizes, which is a check box.  The options are Studio, One / One, Two / One, Two / Two, Three / Two.  I'm trying to make a calculation field, export_sizes, which would be in this format:

One Bed, Two Bed, Three Bed

 

I don't care about studios.  But if a record has sizes one/one and three/two, it should be calculated at "One Bed, Three Bed".

 

If a record has sizes two/one and two/two, is should be calculated at "Two Bed".

 

This should be simple, but I can't seem to make sense of it...

 

Any help would be greatly appreciated. 

 

This should be simple, but I can't seem to make sense of it...

 
One could say that "you made your list, now lie in it", but that would be a bit harsh …  :laugh:
 
Try
Let ( [

  l = ¶ & List ( "three/two" ; "Studio" ; "one/one" ) ; // sample data: List() represents your field; keep the pilcrow

  one = Case ( PatternCount ( l ; "¶one" ) ; "One Bed" ) ;
  two =  Case ( PatternCount ( l ; "¶two" ) ; "Two Bed" ) ; 
  three = Case ( PatternCount ( l ; "¶three" ) ; "Three Bed" )
  ] ; 
  Substitute ( List ( one ; two ; three ) ; ¶ ; ", " )
)

which for the sample value list returns "One Bed, Three Bed"

  • Author

I know, I have learned my lesson on checkboxes.  Thanks for the help, worked like a charm!

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.