Skip 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.

calc field with commas

Featured Replies

Good Day to all

Creating a web store data management input screen. to select product categories on the export the result is a calculated field with commas in them

the field categoryids equals the fields CatagoryID1 CatagoryID2 CatagoryID3

the first attempt:

CatagoryID1 & "," & CatagoryID2 & "," & CatagoryID3

gives me

21,,

I need the verbiage for if it is empty don't add the commas.

Here is one way ...

Let (

concat = Category1 & " " & Category2 & " " & Category3 ;

Substitute ( TrimAll ( concat ; 1 ; 0 ) ; " " ; [color:red]"," )

)

I notice you don't have spaces as 22, 34, 27 but rather 22,34,27. If you decide you want the space after the comma, just add it after the comma in red. :smile2:

UPDATE: Using Let() here isn't required but 1) it makes it easier to read what is happening and 2) it will be easier if you wish to add fields to the concat.

Edited by Guest
Added update

Hi LaRetta,

I like your calculation better than the one I use;

Hi pc302, and Welcome to the Forum,

Here is another way,

categoryids (calc, Text result) =

Case(not IsEmpty(CatagoryID1); CatagoryID1 [color:red]& ", "; CatagoryID1) &

Case(not IsEmpty(CatagoryID2); CatagoryID2 [color:red]& ", "; CatagoryID2) &

Case(not IsEmpty(CatagoryID3); CatagoryID3 [color:red]; CatagoryID3)

[color:blue]Note the change in the calculation for the CatagoryID3.

I only posted this so that the new users can see a different way.

Lee

  • Author

Thanks for the help both of you. Both answers were very creative.

Take Care

Substitute( List ( CatagoryID1; CatagoryID2 ; CatagoryID3); "¶"; ", ")

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.