Loading

Adding A Line Break in A Calculated Field

Publiseringsdato: Feb 25, 2025
Oppgave
How to add a line break in a calculated field. 
Trinn

Below is an example in Tableau Desktop, but you can create a calculated field and do the same on Tableau Server with a published workbook by web editing it. 

Option 1

Surround it by quotation marks:

[State] + " 
"+ [Region]

Note:
To add an empty line between the line break, add another carriage return:

[State] + " 
 
"+ [Region]

 

To view the steps showed in the below video, please expand the above section.
Note: the video has no sound.

 
 

Option 2

Use the following encoded value:

CHAR(10)

 

Flere ressurser
The newline character CHAR(10) is more reliable because it can insert a newline within the SQL query string. For example, if the string is used as a filter value.
Knowledge-artikkelnummer

001458172

 
Laster
Salesforce Help | Article