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.

Calculation not functioning

Featured Replies

I'm trying to create a budget table that is related to a number of other tables representing purchases and payments. In the budget table one record represents one year with 12 individual fields representing the twelve months of the year. A corresponding calculation field representing a total amount for a given month derived from the related purchase and payment amount fields in the purchase and payment tables .

I'm basically trying to bring the purchase and payment totals from a given month and bring it over into the corresponding budget table totals so it can be compared to a budget amount and then calculate the difference in another field. I tried the following calculation but it is not working properly.

If ( MonthName (Payment by Check::payment_date = MonthName (january) ; Sum (Payment by Check::payment_amount) ; "" )

My logic behind this is if my purchase or payment date equals the january date in my budget table, then give me a sum total of those payment or purchase amounts. Otherwise do nothing. The totals are going into the assigned budget field but they continue to go into the field whether or not the date equals January. I did this same calculation but replaced the budget MonthName with February instead of January but the result still goes into the January budget field and seems not to care what the date is.

Does anyone have an idea how to solve this or am I approaching this thing wrong from the word go?

You probably need to base your relationship "Pay By Check" to a stored calculation field to capture the transaction month:

transaction_month = MonthName(payment_date)

Then use this field "transaction_month" for the relationship key.

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.