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.

Help with a text calculation

Featured Replies

I thought this would be simple, but, it's driving me crazy!!!!

Here's what I'm trying to do. I have a text field fk_UnitID that contains the following type data.

I-02F or II-04G or I-12A, etc. The I or II denotes the Building and the right side the apartment. I set up a calculation to get the Building from the UnitID:

Case(

Left(FK_UnitID;2) = "-";Left(FK_UnitID;1);

Left(FK_UnitID;2)

)

My problem is I get the II if the unit is II-02F

but get, I- if the unit is I-12A. I just want I.

What am I doing wrong?:

TIA

Al

If the format is consistent, i.e. there's always a letter just before the hyphen and a numeric character immediately after, you can use:

LeftWords ( UnitID ; 1 )

  • Author

Excellent. I tried Leftwords, but I was doing doing some fool thing wrong because it just wasn't working. Thanks for the quick reply.

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.