Sherzodbek I.’s Post

View profile for Sherzodbek I., graphic

Senior Tableau Developer | Data Analyst | BI Developer | Tableau, Salesforce, SharePoint, Cognos, SQL, QlikView, Excel, Alteryx, Dataiku, Python, R

I found this technique very useful for handling long texts like customer names, product names, or job titles without using Regex. It's helpful when you need to fit text inside chart, for example bar chart, without it overflowing. This method solves that issue effectively. Essentially, you have to use CHAR(10) to break the line, where CHAR() function returns a character from ASCII code, and 10 is line breaker/liner feeder/newline character. It is also equivalent to "\n" in Regex. Hope you find it useful. Thanks to Ray for sharing this handy trick. #datafam #tableau #data #dataanalytics #analytics

View profile for Ray Givler, graphic
Ray Givler Ray Givler is an Influencer

📈 Data → Decisions✔ | Balancing Design and Pragmatism in Tableau | 2024 Tableau Social Ambassador

🤔 Have you had a time when you want to consistently break a customer name, product name, or job title into two lines in Tableau.   ☝️ You can do this with a calculated field of the following format to force the line feed in a controlled place: [Last Name] + ',' + CHAR(10) + [First Name]   You could get identical results by putting the line feed between quotes: [Last Name] + ', ' + [First Name]   You could, of course, account for multi-part names with string functions or REGEX.   You could also extend this same technique for names with 3 or more parts across 3 or more lines.   🏗→🧠 Build to Learn!   💭🚶♀️🚶♂️ Follow for more.   #tableau #data #analytics #VizoftheRay

  • No alternative text description for this image

To view or add a comment, sign in

Explore topics