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

I have a field, ‘CRM Category’ (I.e. Diamond, Gold, Silver) for B2C End Customer – and another field for Total purchase over last 3 months – Calculation - If customer purchases for Rs 10,000 over last three months, a Diamond Customer, If customer purchases Rs5,000 over last three months, Gold customer. If customer purchases less than Rs5, 000, silver customer

 

My question is for the calculation of the Gold customer as for the Diamond i will use the grater symbol and for Silver the less symbol.

Case ( Total_Revenue  < "$10,000" ; "Diamond")

Thank for your help

"$10,000" is text, not a number. Any number will be higher than this, because the $ character precedes any digit in alphabetical order. Make sure you compare numbers to numbers.

Note also that the Case() function returns the first result whose test evaluates as true - so you need to mind the order of the tests. In your example, it could be either:

Case (
TotalPurchase ≥ 10000 ; "Diamond" ;
TotalPurchase ≥ 5000 ; "Gold" ;
"Silver" )

or:

Case (
TotalPurchase < 5000 ; "Silver" ;
TotalPurchase < 10000 ; "Gold" ;
"Diamond" )

 

 

  • Author

What would be value above 10,000?

2 hours ago, Kishan_Canoo said:

What would be value above 10,000?

What do you mean?

8 hours ago, Kishan_Canoo said:

What would be value above 10,000?

In Comment's first example:

TotalPurchase ≥ 10000 ; "Diamond" ;

≥ is the symbol for 'greater than or equal to'

In Comment's second example:

values less than 10,000 are specified in the first two tests and the final 'default result' of  "Diamond" will be applied to all records NOT identified in the first two tests so all records 10,000 or greater will be Diamond.  Read up in FM Help on using the Case() logical function. 

Edited by LaRetta

  • Author

Thank you all. That works as expected. My problem is solved now.:)

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.