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.

Calcuation IF or CASE? and nesting together

Featured Replies

I'm trying to create an invoice where different equipment ID's have different prices. I'm trying to put them all in one field, if it is possible. If someone can get me started on the equation, I hopefully can input all of my data.

My fields:

Equipment ID

CM

Expenditure

Equipment ID A8117 = .01

Equipment ID A8115 = .01

Equipment ID A7213 = .20

Equipment ID A7374 = .20

Equipment ID A7924 = .034

Equipment ID A6967 = .034

Most of my Equipment ID's = .034

The calcluation I am trying to do is:

expenditure = CM x .01 or .20 or .034

Is this even possible?

thanks for any help you can give!

Your better off imo to have a seperate table for the prices and look them up with a relationship.

If you do it with a calculation when the price changes it will change all the old prices too. Which I'm guessing you would not want.

Michael

  • Author

I thought about that, but I'm not sure how to use that function. Can you help guide me through that?

Seeing that you are using version 6 you will need to make a seperate file we'll call it Item Pricing.

Need 2 fields

Price

Equipment ID

Then in your main file set up a relationship using the Equipment ID for the key field.

Once you have that done you would then make the price field in your main file a lookup based on the relationship you just set up. This is done in the define fields area.

In short when you type in the Equipment ID number in the main file it will lookup the price you have in the Item Pricing file for that matching ID number.

I don't have version 6 loaded but can load it if you need more detail.

Edit: I added 2 sample files for you.

HTH

Michael

Price_Lookup.zip

Edited by Guest

  • Author

Alright - I think I understand what you are saying. I tried what I thought you meant, but it didn't work.

Frist, I created another database with 2 fields - Price and Equipment ID. I imported from an excel file all of my Equipment ID's and the prices that corralate to them.

Then in my main DB, I went to define relationships and opened my secondary DB. Then I matched the equipment ID in my main to the equipment ID in the seconarday.

Then I went to my price field in my main DB and did a lookup, using the secondary price.

But my price is not filled in.

Am I not doing this correctly?

thank you!

Becki

Edited by Guest

  • Author

oh! I figured it out. Thanks for your help!!

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.