Loading
CRM Analytics
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          rtrim Function

          rtrim Function

          Removes the specified substring from the end of a string. To remove trailing spaces, do not specify a substring.

          Required Editions

          Available in Salesforce Classic and Lightning Experience.
          Available with CRM Analytics, which is available for an extra cost in Enterprise, Performance, and Unlimited Editions. Also available in Developer Edition.

          Syntax

          rtrim(string,[substring])

          Arguments

          Argument Description
          string Dimension field or text string to remove the trailing spaces or specified substring from.
          substring Optional. The value to remove from the string.
          Example
          Example You want to trim the 2 trailing space characters from a string.
          rtrim("2 Spaces After  ")
          Enter the function in the Formula section of the Preview tab.
           
          Loading
          Salesforce Help | Article