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.

Problem Deriving Two values from one field

Featured Replies

Can I derive 2 values from the stated range:

Expected_S-T [0.085-0.250]?

When I use the text functions in separate calc fields, the Right(text, number) gives me problems...please see below....

Here's the problem: Left(Expected_S-T, 5) gives me the value .0850 which is acceptable, However....

Right(Exptected_S-T, 5) gives me the value WITHOUT the decimal point...(85025) and picks up the last 2 digits from the first value.

How can I get the value 0.085 in one field and 0.250 in another field--both originating from a single field?

Anything would be very helpful! confused.gif

I can upload the file upon request.

Thanks,

Jon

Jon,

You shouldn't use "-", or any other operator in your field names (FileMaker will give you a warning about this). I have changed your field name to Expected_ST and this field should be a Text Field.

Left Part a Calculation field, result Number

Left(Expected_ST, Position(Expected_ST, "-", 1, 1)-1)

Right Part a Calcution Field, result Number

Case(PatternCount(Expected_ST, "-") = 1, Right(Expected_ST, Length(Expected_ST) - Position(Expected_ST, "-", 1, 1)), PatternCount(Expected_ST, "-") >1, Middle(Expected_ST, Position(Expected_ST, "-", 1, 1) + 1, Position(Expected_ST, "-", 1, 2) - (Position(Expected_ST, "-", 1, 1) + 1)))

HTH

Lee

cool.gif

  • Author

Lee, it worked like a charm. Are there any good tutorial files that will further expound on how the PositionFunction works? I'm a little puzzled with it.

Thanks again for the response, I appreciate it.

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.