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.

Featured Replies

In my 'days past due field' I have the calculation:

today's date - billing date - 30

The calculation (sum) can be a positive or negative number (and it works well).

However, I want the number appearing in the 'days past due' field to be greater than zero only. If it's zero or a negative number, I want the field to be blank. How do I do this? thanks.

Try using an If or Case statement for the calc field:

If (Today-BillingD-30)>0, Today-BillingD-30, "0") or

Case(

Today-BillingD-30)>0, Today-BillingD-30,

Today-BillingD-30)less than or equal to 0, "0")

Hope this helps, greg

My error, I wasn't wearing my reading glasses. If you want the field to blank ranther than zero, as I first thought, for negative numbers the case or if statement for that eventuality should be:

Case

T-BD-30 greater than or equal to 0,T-BD-30

T-BD-30 < 0, "" or

If T-BD-30 greater than or equal to 0,T-BD-30, "".

The "" is a pair of parenthases without a space in between.

sorry for the confusion, greg.

  • Author

Thanks Greg -- the zero is OK -- here's what seems to work:

If(today's date-billing date-30>0, (today's date-billing date-30), "0" or

Case(today's date-billing date-30>0, (today's date-billing date-30) >=0, "0"))

I don't understand the syntax (rationale) of the open/close parens -- but I'm not going to worry about it.

thanks again,

Harry

The empty pair of parentheses ensures the field will be blank for negative numbers, as I originally wrote the test for zero and positive numbers. If the test is for positive numbers and the alternative is zero, the empty pair of parentheses is not necessary. Also unnecessary in case statements but, it's late, and my brain is shutting down. Have a good day, correction, night. greg.

The empty pair of parentheses ensures the field will be blank for negative numbers, as I originally wrote the test for zero and positive numbers. If the test is for positive numbers and the alternative is zero, the empty pair of parentheses is not necessary. Also unnecessary in case statements but, it's late, and my brain is shutting down. Have a good day, correction, night. greg.

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.