/    /  Amazon QuickSight – toUpper

Amazon QuickSight – toUpper

 

The ‘toUpper()’ function in Amazon QuickSight is used to convert a string expression to uppercase. This function returns a new string with all the characters converted to uppercase.

 

Syntax

#Start#
toUpper(expression)
#End#

 

This function takes one argument:

 

  • expression: This is the string expression that is to be converted to uppercase.

 

 

Suppose we have a dataset that contains information about employees’ names and their job titles. We can use the toUpper() function in Amazon QuickSight to convert the job titles to uppercase.

To convert the job titles to uppercase, we can create a new calculated field in Amazon QuickSight with the following expression:

 

Example

#Start#
toUpper(job_title)
#End#

 

This expression will convert all the job titles in our dataset to uppercase.

For instance, if our job title data is as follows:

 

NameJob Title
John Doemanager
Jane Smithassistant
Bob Johnsonanalyst
Sally Leeexecutive
Jim Browndirector

Then, the job title data with uppercase converted will be:

 

NameJob TitleJob Title (toUpper)
John DoemanagerMANAGER
Jane SmithassistantASSISTANT
Bob JohnsonanalystANALYST
Sally LeeexecutiveEXECUTIVE
Jim BrowndirectorDIRECTOR

 

In this example, we can see that the toUpper() function has converted all the job titles to uppercase, resulting in a cleaner and more consistent dataset.