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 Field where the results equals one '$' character for every 100 dollars of value

Featured Replies

I have a calculation field, with a text result, that I want to give some sort of visual indication of how expensive an item is without displaying the actual price. 

 

In a list view, I would want that text calculation field to provide quick visual reference as to how expensive an item is:

 

ITEM 1 - $$$$$$$$$

ITEM 2 - $$$

ITEM 3 - $$$$$$

ITEM 4 - $$$$$$$$$$$

ITEM 5 - $$

 

Short of nested Ifs, what is an elegant way to achieve that calculation?

 

Thank you

A simple way would be to put a cap on the number of characters and do just:

Left ( "$$$$$$$$$$$$$$$$$$$$" ; Round ( Price / 100 ; 0 ) )

A more elegant way could be:

Let ( [
n = Round ( Price / 100 ; 0 )
] ;
Substitute ( 10^n - 1 ; [ "9" ; "$" ] ; [ "0" ; "" ] )
)

This still imposes a maximum on the input Price, but the limit is 404 characters (i.e. $40,400), so ...

--
P.S. Please update your profile to reflect your version and OS so we know what you can use.
 

Edited by comment

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.