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.

How to do If This = That, then give Sum of X field?

Featured Replies

I'm trying to setup a field where If Type = "Sale", then it shows me the sum of a certain field. 


My current formula is:

If ((Type = "Sale") ; Sum ( Total Sale Price ))

and while I don't get an error, I also don't get anything in my field, it's just blank. 

Thanks for any help.

  • Author

Seems like something is wrong with the Sum function on my end. I took out the If Type = "Sale" and just left Sum (Total System Size) and that is also blank, so need to see about getting that to work before I do any "If" calculations.

Typically you use Sum to get related data or multiple. fields..

Sum ( RELATED_TABLE::NUMBER_FIELD ) or Sum ( FieldA ; FieldB ) 

Is your existing field "Total Sale Price" is a summary field?

Summary fields totals the values in the found set of records. 

 

  • Author

I had "Total Sale Price" as a summary field (sum of all Sale Price fields), but I couldn't figure out a way to add an "if" statement to it.

I basically want it to be a summary field (total of values in found set of records), but I only want to to pull data if the Type = "Sale". If Type = "Lead", then I don't want it to include the data from the Sale Price field.

  • Author

Finally got everything working how I wanted it with a different method. 

My field "Total Sale Price" was a Summary of "Sale Price" and my goal was to only show data from records where Type =  Sale.

I ended up making a new field that said If (Type = "Sale" ; Sale Price) which basically only had the Sale Price data in it if Type = Sale.

I then made another field that was a Summary of the new field above and everything is working as indented. :)

That's a good way to do it. Good job figuring it out.

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.