

{"id":42991,"date":"2018-11-22T15:21:29","date_gmt":"2018-11-22T09:51:29","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=42991"},"modified":"2018-11-21T12:24:34","modified_gmt":"2018-11-21T06:54:34","slug":"qlik-sense-string-functions","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/","title":{"rendered":"Qlik Sense String Functions &#8211; Syntax and Example"},"content":{"rendered":"<h2><span style=\"font-weight: 400\">1. Objective<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Earlier, we have discussed<a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-formatting-functions\/\"><strong> Qlik Sense Formatting Functions<\/strong><\/a>. Today, we will see the Qlik Sense String Functions Tutorial. The Qlik Sense String Functions are applied to the strings or text values used in data load scripts. We use these String Functions of Qlik Sense to manage and handle the string values. Qlik Sense comes with a number of string functions which are important for us to understand.<\/span><\/p>\n<p>So, let&#8217;s start Qlik Sense String Functions.<\/p>\n<div id=\"attachment_43120\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-43120\" class=\"size-full wp-image-43120\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01.jpg\" alt=\"Qlik Sense String Functions - Syntax and Example\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-43120\" class=\"wp-caption-text\">Qlik Sense String Functions &#8211; Syntax and Example<\/p><\/div>\n<p><strong>Recommended Reading &#8211;<\/strong> <strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-interpretation-functions\/\">Qlik Sense Interpretation Function<\/a><\/strong><\/p>\n<h2>2. Qlik Sense String Functions<\/h2>\n<p>Following are the Qlik Sense String Functions, let&#8217;s discuss them in detail &#8211;<\/p>\n<h3><span style=\"font-weight: 400\">i. Capitalize<\/span><\/h3>\n<p><span style=\"font-weight: 400\">The capitalize function returns a string with each word of the string starting with a capital letter. <\/span><\/p>\n<p><strong>The syntax for Capitalize Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Capitalize(text)<\/pre>\n<p><span style=\"font-weight: 400\">For instance, <\/span><\/p>\n<p><span style=\"font-weight: 400\">Capitalize(&#8216;lesson string functions&#8217;)<\/span><span style=\"font-weight: 400\"> returns the string \u2018Lesson String Functions\u2019.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">ii. Chr<\/span><\/h3>\n<p><span style=\"font-weight: 400\">The chr function returns the Unicode character corresponding to the integer you have entered in the expression. <\/span><\/p>\n<p><strong>The syntax for chr Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Chr(int)<\/pre>\n<p><span style=\"font-weight: 400\">For instance, in the expression given below, the chr() function will return the alphabet corresponding to the integer entered in the expression following the standard code (ASCII).<\/span><\/p>\n<p><span style=\"font-weight: 400\">Chr(65)<\/span><span style=\"font-weight: 400\"> returns the letter \u2018A\u2019 as a string, or,<\/span><\/p>\n<p><span style=\"font-weight: 400\">Chr(90)<\/span><span style=\"font-weight: 400\"> returns the letter \u2018Z\u2019 as a string. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">iii. Evaluate<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function checks an input value in the expression for whether it can be evaluated in some or not. If it involves the evaluation of some kind then this function returns the value after evaluation. It returns the values in dual data format. If there is no evaluation in the expression then NULL is returned.<\/span><\/p>\n<p>You must read &#8211; <strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-null-functions\/\">Qlik Sense Null Functions<\/a><\/strong><\/p>\n<p><strong>The syntax for\u00a0Evaluate Qlik Sense String Functions :<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Evaluate(expression_text)<\/pre>\n<p><span style=\"font-weight: 400\">For instance, <\/span><\/p>\n<p><span style=\"font-weight: 400\">Evaluate( 5 * 8 )<\/span><span style=\"font-weight: 400\"> will return the value \u201840\u2019. Or,<\/span><\/p>\n<p><span style=\"font-weight: 400\">Evalute(600\/10)<\/span><span style=\"font-weight: 400\"> will return the value \u201960\u2019. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">iv. FindOneOf<\/span><\/h3>\n<p><span style=\"font-weight: 400\">The findoneof() function returns the position of the characters attained as search result which it encounters while searching for a set of characters. <\/span><\/p>\n<p><strong>The syntax for FindOneOf Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">FindOneOf(text, char_set[, count])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">text<\/span><span style=\"font-weight: 400\"> is the text string in which you want to search the character set.<\/span><\/p>\n<p><span style=\"font-weight: 400\">char_set<\/span><span style=\"font-weight: 400\"> is the set of characters which you want to be searched.<\/span><\/p>\n<p><span style=\"font-weight: 400\">count<\/span><span style=\"font-weight: 400\"> is for counting the position number or occurrence of a certain character from the character set. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For instance, <\/span><\/p>\n<p><span style=\"font-weight: 400\">FindOneOf(&#8216;my example text string&#8217;, &#8216;et%s&#8217;, 3)<\/span> <span style=\"font-weight: 400\">will return the value &#8217;12&#8217; because the search is for any of the characters: e, t, % or s, and the character &#8220;t&#8221; is the third occurrence, and is in position 12.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">v. Hash128<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns a 128-bit hash value corresponding to the value or string entered in the expression. The value usually returned is a 22-character long string value which is a combined 128-bit version of all the values that you have entered.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-mapping-function\/\">Get a deeper knowledge of Qlik Sense Mapping Functions<\/a><\/strong><\/p>\n<p><strong>The syntax of Qlik Sense Hash128 String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Hash128(expr{, expression})<\/pre>\n<p><span style=\"font-weight: 400\">For instance, the expressions given below, will return a 128-bit hash value combining all the individual strings and store it in the system. <\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Hash128 (&#8216;abc&#8217;, &#8216;xyz&#8217;, &#8216;123&#8217;)<\/span><\/li>\n<li><span style=\"font-weight: 400\">Hash128 (Region, Year, Month)<\/span><\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400\">vi. Hash160<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns a 160-bit hash value for the combined values corresponding to the string you enter in the expression. The result is usually a 27-character string which is stored as a 160-bit hash value in the memory. <\/span><\/p>\n<p><strong>The syntax of Hash160 Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Hash160(expr{, expression})<\/pre>\n<p><span style=\"font-weight: 400\">For instance, a 160-bit hash value will return (combined) for all the strings entered separately in the expression as given below. <\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Hash128 (&#8216;abc&#8217;, &#8216;xyz&#8217;, &#8216;123&#8217;)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Hash128 (Region, Year, Month)<\/span><\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400\">vii. Hash256<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns a 256-bit hash value for the combined values corresponding to the string you enter in the expression. The result is usually a 43-character string which is stored as a 256-bit hash value in the memory.<\/span><\/p>\n<p>We recommend you to <strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-financial-functions\/\">read Qlik Sense Financial Functions<\/a><\/strong><\/p>\n<p><strong>The syntax of Hash 256 Qlik Sense String Functions :<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Hash256(expr{, expression})<\/pre>\n<p><span style=\"font-weight: 400\">For instance, a 256-bit hash value will return (combined) for all the strings entered separately in the expression as given below. <\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Hash128 (&#8216;abc&#8217;, &#8216;xyz&#8217;, &#8216;123&#8217;)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Hash128 (Region, Year, Month)<\/span><\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400\">viii. Index<\/span><\/h3>\n<p><span style=\"font-weight: 400\">The index() function is used to find the nth position of the occurrence of a character in a string. The string in which the position will be searched is mentioned in the expression as given below. <\/span><\/p>\n<p><strong>The syntax of index Qlik Sense string Functions :<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Index(text, substring[, count])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">text<\/span><span style=\"font-weight: 400\"> is the main or the original string that contains the substring which is to be searched. <\/span><\/p>\n<p><span style=\"font-weight: 400\">substring<\/span><span style=\"font-weight: 400\"> is the string which we want to search.<\/span><\/p>\n<p><span style=\"font-weight: 400\">count<\/span><span style=\"font-weight: 400\"> is the specific number of occurrences which we can mention while searching. The count is specified by n and if no value of count is specified then 1 is considered by the system. The characters in the string are numbered 1 to n (right to left). If you use a negative number to specify the count, then the string is read from left to right.<\/span><\/p>\n<p>You must take a look of <strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-counter-functions\/\">Qlik Sense Counter Functions<\/a><\/strong><\/p>\n<p><span style=\"font-weight: 400\">For instance, <\/span><\/p>\n<p><span style=\"font-weight: 400\">Index(&#8216;abcdefghi&#8217;, &#8216;de&#8217;)<\/span><span style=\"font-weight: 400\"> will return 4 because \u2018de\u2019 substring appears on the 4<\/span><span style=\"font-weight: 400\">th<\/span><span style=\"font-weight: 400\"> position in the string. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Index(&#8216;abcdabcd&#8217;, &#8216;b&#8217;, 2)<\/span><span style=\"font-weight: 400\"> will return 6 because it is the position of the second occurrence of &#8216;b&#8217;.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Index(&#8216;abcdabcd&#8217;, &#8216;b&#8217;,-2) <\/span><span style=\"font-weight: 400\">will return 2 as it is the second occurrence of &#8216;b&#8217; starting from the left end of the string. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">ix. KeepChar<\/span><\/h3>\n<p><span style=\"font-weight: 400\">The KeepChar function returns a string which keeps only a particular section or some characters of the entire string. Which is why, the name of this function is \u2018keepchar\u2019 which indicates keeping a character. <\/span><\/p>\n<p><strong>The syntax of Qlik Sense KeepChar string Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">KeepChar(text, keep_chars)<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">text<\/span><span style=\"font-weight: 400\"> is the original text string from which you can keep a set of characters.<\/span><\/p>\n<p><span style=\"font-weight: 400\">keep_chars<\/span><span style=\"font-weight: 400\"> is the selected set of characters which you want the function to return. If you do not mention the keep_char parameter, then the original text string is returned. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For instance, <\/span><\/p>\n<p><span style=\"font-weight: 400\">KeepChar (&#8216;x1y2z3&#8242;,&#8217;123&#8217;)<\/span><span style=\"font-weight: 400\"> returns &#8216;123&#8217;.<\/span><\/p>\n<p><span style=\"font-weight: 400\">KeepChar (&#8216;x1y2z3&#8242;,&#8217;1234&#8217;)<\/span><span style=\"font-weight: 400\"> returns &#8216;123&#8217;.<\/span><\/p>\n<p><span style=\"font-weight: 400\">KeepChar (&#8216;x1y22z3&#8242;,&#8217;1234&#8217;)<\/span><span style=\"font-weight: 400\"> returns &#8216;1223&#8217;.<\/span><\/p>\n<p><span style=\"font-weight: 400\">KeepChar (&#8216;x1y2z3&#8242;,&#8217;312&#8217;)<\/span><span style=\"font-weight: 400\"> returns &#8216;123&#8217;.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">x. Left<\/span><\/h3>\n<p><span style=\"font-weight: 400\">The left function returns a set of characters from the left of the string. Number of characters which you want the function to return can also be mentioned in the expression. <\/span><\/p>\n<p><strong>The syntax for Left Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Left(text, count)<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">text<\/span><span style=\"font-weight: 400\"> is the string which you enter.<\/span><\/p>\n<p><span style=\"font-weight: 400\">count<\/span><span style=\"font-weight: 400\"> is the number of characters which you want to include in the resultant string from left.<\/span><\/p>\n<p>Get the idea of <strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-logical-functions\/\">how logical functions work in Qlik Sense<\/a><\/strong><\/p>\n<p><span style=\"font-weight: 400\">For example, <\/span><\/p>\n<p><span style=\"font-weight: 400\">Left(&#8216;abcdef&#8217;, 3)<\/span><span style=\"font-weight: 400\"> will returns &#8216;abc&#8217;. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">xi. Len<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the length of the input string, i.e. the total number of characters used in a string. <\/span><\/p>\n<p><strong>The syntax for Len Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Len(text)<\/pre>\n<p><span style=\"font-weight: 400\">For example, <\/span><\/p>\n<p><span style=\"font-weight: 400\">Len(&#8216;QLIKSENSE&#8217;)<\/span><span style=\"font-weight: 400\"> will return \u20189\u2019 as the length of the string. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">xii. Lower<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns a string which is converted fully into a string having characters in lowercase.<\/span><\/p>\n<p><strong>The syntax for Lower Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Lower(text)<\/pre>\n<p><span style=\"font-weight: 400\">For example,<\/span><\/p>\n<p><span style=\"font-weight: 400\">Lower(&#8216;QlikSense&#8217;)<\/span><span style=\"font-weight: 400\"> will return &#8216;qliksense&#8217;.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">xiii. LTrim<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function trims the string of any leading paces between the characters or at the start or from the left of the string. <\/span><\/p>\n<p><strong>The syntax for LTrim Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">LTrim(text)<\/pre>\n<p><span style=\"font-weight: 400\">For example,<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">LTrim( &#8216; DataFlair&#8217; )<\/span><span style=\"font-weight: 400\">will return a trimmed string as, &#8216;DataFlair&#8217;.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">LTrim( &#8216;DataFlair &#8216; )<\/span><span style=\"font-weight: 400\">returns a string trimmed of spaces as &#8216;DataFlair&#8217;.<\/span><\/li>\n<\/ul>\n<p>Recommended Reading &#8211; <strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-integer-functions\/\">Qlik Sense Integer Functions<\/a><\/strong><\/p>\n<h3><span style=\"font-weight: 400\">xiv. Mid<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function takes in three arguments, i.e. a text input, a start and a count. These parameters decide the length of characters from the given text input which should be returned as resultant string. The characters in the string are numbered from 1 to n (for n number of characters in the string). <\/span><\/p>\n<p><strong>The syntax for Mid Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Mid(text, start[, count])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">text<\/span><span style=\"font-weight: 400\"> is the input string which you enter.<\/span><\/p>\n<p><span style=\"font-weight: 400\">start<\/span><span style=\"font-weight: 400\"> marks the starting character from the string.<\/span><\/p>\n<p><span style=\"font-weight: 400\">count<\/span><span style=\"font-weight: 400\"> decides up to which character the string should be taken. If you do not mention this parameter, then the string is taken from the start character to the last character of the string. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, <\/span><\/p>\n<p><span style=\"font-weight: 400\">Mid(&#8216;QlikSense&#8217;,5 )<\/span><span style=\"font-weight: 400\"> will return &#8216;Sense&#8217;.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Mid(&#8216;QlikSense&#8217;,1, 4 )<\/span><span style=\"font-weight: 400\"> will return &#8216;Qlik&#8217;.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">xv. Ord<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the Unicode codepoint number for the first character of the string you input. <\/span><\/p>\n<p><strong>The syntax for Ord Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Ord(text)<\/pre>\n<p><span style=\"font-weight: 400\">For instance, the expressions given below will return the integer value of the <\/span><\/p>\n<p><span style=\"font-weight: 400\">Ord(&#8216;A&#8217;)<\/span><span style=\"font-weight: 400\"> returns the integer 65 which is the Unicode value for the letter A.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Ord(&#8216;QlikSense&#8217;)<\/span><span style=\"font-weight: 400\"> returns the integer 81 as it is the Unicode codepoint number for the letter Q.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Similarly, you can get any value in return for a letter from A (Unicode value 65) to Z (Unicode value 90).<\/span><\/p>\n<h3><span style=\"font-weight: 400\">xvi. PurgeChar<\/span><\/h3>\n<p><span style=\"font-weight: 400\">We use this function to remove the unwanted characters from a string as mentioned in the expression.<\/span><\/p>\n<p>Take a tour to <strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-table-functions\/\">Qlik Sense Table Functions<\/a><\/strong><\/p>\n<p><strong>The syntax for PurgeChar Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">PurgeChar(text, remove_chars)<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">text<\/span><span style=\"font-weight: 400\"> is the original string and <\/span><span style=\"font-weight: 400\">remove_chars<\/span><span style=\"font-weight: 400\"> is the characters you want to remove from the strings. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For instance, <\/span><span style=\"font-weight: 400\">PurgeChar(&#8216;x1y2z3&#8242;,&#8217;123&#8217;)<\/span><span style=\"font-weight: 400\"> will return &#8216;xyz&#8217; removing characters \u2018123\u2019 as mentioned in the second argument. <\/span><\/p>\n<p><span style=\"font-weight: 400\">PurgeChar (&#8216;a1b2c3&#8242;,&#8217;312&#8217;)<\/span><span style=\"font-weight: 400\"> will return &#8216;abc&#8217; omitting characters 1,2 and 3. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">xvii. Repeat<\/span><\/h3>\n<p><span style=\"font-weight: 400\">The repeat function repeats a character or all the characters in the string as many times as mentioned in the second argument of the function. <\/span><\/p>\n<p><strong>The syntax for Repeat Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">repeat(text[, repeat_count])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">text<\/span><span style=\"font-weight: 400\"> is the original string or a character that you want to repeat.<\/span><\/p>\n<p><span style=\"font-weight: 400\">repeat_count<\/span><span style=\"font-weight: 400\"> is the parameter which sets how many times you want the character to be repeated.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, the expression given below returns the number of stars as per the integer mentioned in the value <\/span><\/p>\n<p><span style=\"font-weight: 400\">Repeat( &#8216; * &#8216;, rating )<\/span><span style=\"font-weight: 400\"> \u00a0will return &#8216;*****&#8217; if the value of the variable rating=5. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">xviii. Replace<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function replaces a set of characters in the string with other characters. This function reads the string from left to right and returns a value of string data type.<\/span><\/p>\n<p>Learn the most important<strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-field-functions\/\"> Qlik Sense Field Functions<\/a><\/strong><\/p>\n<p><strong>The syntax for Replace Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">replace(text, from_str, to_str)<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">text<\/span><span style=\"font-weight: 400\"> is the original string.<\/span><\/p>\n<p><span style=\"font-weight: 400\">from_str<\/span><span style=\"font-weight: 400\"> is the character set which you want to replace.<\/span><\/p>\n<p><span style=\"font-weight: 400\">to_str<\/span><span style=\"font-weight: 400\"> is the character set which you want to put in place of the chosen character set. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, <\/span><\/p>\n<p><span style=\"font-weight: 400\">Replace(&#8216;QlikView&#8217;,&#8217;View&#8217;,&#8217;Sense&#8217;)<\/span> <span style=\"font-weight: 400\"> this will return &#8216;QlikSense&#8217;. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">xix. Right<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the characters from the right most corner of the string. You can also specify the number of characters that you want to include from the right. <\/span><\/p>\n<p><strong>The syntax for Right Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">right(text, count)<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">text<\/span><span style=\"font-weight: 400\"> is the original string that will be input.<\/span><\/p>\n<p><span style=\"font-weight: 400\">count<\/span><span style=\"font-weight: 400\"> is the number of characters that you want to include starting from the right most.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, <\/span><\/p>\n<p><span style=\"font-weight: 400\">Right(&#8216;QlikSense&#8217;, 5)<\/span><span style=\"font-weight: 400\"> will return &#8216;Sense&#8217; which is the set of 5 characters starting from right. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">xx. RTrim<\/span><\/h3>\n<p><span style=\"font-weight: 400\">The RTrim() function will trim a string entered in the script for any trailing spaces i.e. from the right of the string. \u00a0<\/span><\/p>\n<p><strong>The syntax for RTrim Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">RTrim(text)<\/pre>\n<p><span style=\"font-weight: 400\">Where, text is the original string which you want to trim of any unwanted spaces. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, <\/span><\/p>\n<p><span style=\"font-weight: 400\">RTrim( &#8216;Hello &#8216; ) <\/span><span style=\"font-weight: 400\">will return a trimmed string from the right, \u2018Hello\u2019. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">xxi. SubField<\/span><\/h3>\n<p><span style=\"font-weight: 400\">We use the SubField function to create a new field using the data from old or already existing fields. Thus, the new field created is called the subfield. A subfield is said to have parts of the original field. Like a \u2018City\u2019 subfield from an original field \u2018Address\u2019, will keep all the cities in one field.<\/span><\/p>\n<p>Recommended Reading &#8211; <strong><a href=\"https:\/\/data-flair.training\/blogs\/trigonometric-and-hyperbolic-functions\/\">Qlik Sense Trigonometric Functions<\/a><\/strong><\/p>\n<p><strong>The syntax for SubField Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">SubField(text, delimiter[, field_no ])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">text<\/span><span style=\"font-weight: 400\"> is the parent string or the parent field which contains the values separated by delimiters. <\/span><\/p>\n<p><span style=\"font-weight: 400\">delimiter<\/span><span style=\"font-weight: 400\"> is the separating symbol used to separate two data values in the parent string.<\/span><\/p>\n<p><span style=\"font-weight: 400\">field_no<\/span><span style=\"font-weight: 400\"> is the specific number of values within the parent string that you want to take and create a subfield for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For instance, notice the code given below, <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Name:\r\nLOAD * inline [\r\nFullName\r\n'Karan Arora'\r\n'Anil Sharma'\r\n\u2018Vikram Shah\u2019\r\n\u2018Arti Mathur\u2019\r\n];\r\nSepNames:\r\nLoad Name,\r\nSubField(Name, ' ',1) as FirstName,\r\nSubField(Name, ' ',-1) as Surname\r\nResident Name;\r\nDrop Table Name;<\/pre>\n<p><span style=\"font-weight: 400\">This will create two new subfields named \u2018FirstName\u2019 and \u2018Surname\u2019 in the table called \u2018SepNames\u2019.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>FullName<\/b><\/td>\n<td><b>FirstName<\/b><\/td>\n<td><b>Surname<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Karan Arora<\/span><\/td>\n<td><span style=\"font-weight: 400\">Karan<\/span><\/td>\n<td><span style=\"font-weight: 400\">Arora<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Anil Sharma<\/span><\/td>\n<td><span style=\"font-weight: 400\">Anil<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sharma<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Vikram Shah<\/span><\/td>\n<td><span style=\"font-weight: 400\">Vikram<\/span><\/td>\n<td><span style=\"font-weight: 400\">Shah<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Arti Mathur<\/span><\/td>\n<td><span style=\"font-weight: 400\">Arti<\/span><\/td>\n<td><span style=\"font-weight: 400\">Mathur<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span style=\"font-weight: 400\">xxii. SubStringCount<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function counts how many times a substring i.e. a part of the original string is occurring the original or parent string. This function returns the answer as an integer value. <\/span><\/p>\n<p><strong>The syntax for SubString Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">SubStringCount(text, sub_string)<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">text<\/span><span style=\"font-weight: 400\"> is the original string which is input in the script.<\/span><\/p>\n<p><span style=\"font-weight: 400\">sub_string<\/span><span style=\"font-weight: 400\"> is the set of characters that you want to count the number of occurrences of. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For example,<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">SubStringCount (&#8216;abcdefgcdxyz&#8217;, &#8216;cd&#8217;)<\/span><span style=\"font-weight: 400\"> will return &#8216;2\u2019 because \u2018cd\u2019 appears two times in the parent string.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">SubStringCount (&#8216;abcdefgcdxyz&#8217;, &#8216;dc&#8217;)<\/span><span style=\"font-weight: 400\"> returns &#8216;0&#8217; because there no such substring as \u2018dc\u2019 in the parent string.<\/span><\/li>\n<\/ul>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-mathematical-functions\/\">You must read Qlik Sense\u00a0Mathematical Functions<\/a><\/strong><\/p>\n<h3><span style=\"font-weight: 400\">xxiii. TextBetween<\/span><\/h3>\n<p><span style=\"font-weight: 400\">The TextBetween() function returns the text or string enclosed between two delimiters. <\/span><\/p>\n<p><strong>The syntax for TextBetween Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">TextBetween(text, delimiter1, delimiter2[, n])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">text<\/span><span style=\"font-weight: 400\"> is the original string which is entered in the script.<\/span><\/p>\n<p><span style=\"font-weight: 400\">delimiter1<\/span><span style=\"font-weight: 400\"> is the first delimiter that encloses the desired set of characters.<\/span><\/p>\n<p><span style=\"font-weight: 400\">delimiter2<\/span><span style=\"font-weight: 400\"> is the second delimiter. First and the second delimiter will enclose the text you want the function to return.<\/span><\/p>\n<p><span style=\"font-weight: 400\">n<\/span><span style=\"font-weight: 400\"> is the number of delimiter pair, the text enclosed by which you want to get as a result.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, <\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">TextBetween(&#8216;&lt;xyz&gt;&#8217;, &#8216;&lt;&#8216;, &#8216;&gt;&#8217;)<\/span><span style=\"font-weight: 400\"> will return &#8216;xyz&#8217;.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">TextBetween(&#8216;&lt;Qlik&gt;&lt;Sense&gt;&#8217;, &#8216;&lt;&#8216;, &#8216;&gt;&#8217;,2) <\/span><span style=\"font-weight: 400\">will return \u2018Sense&#8217; because it lies in the second pair of delimiters.<\/span><\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400\">xxiv. Trim<\/span><\/h3>\n<p><span style=\"font-weight: 400\">The trim function trims a string for both leading (from left) and trailing (from right) spaces. <\/span><\/p>\n<p><strong>The syntax for Trim Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Trim(text)<\/pre>\n<p><span style=\"font-weight: 400\">For example, <\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Trim(&#8216; xyz&#8217;)<\/span><span style=\"font-weight: 400\"> trims the leading space and returns &#8216;xyz&#8217;.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Trim(&#8216;xyz &#8216;)<\/span><span style=\"font-weight: 400\"> trims the trailing space and returns &#8216;xyz&#8217;.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Trim(&#8216; xyz &#8216;)<\/span><span style=\"font-weight: 400\"> trims both the leading and trailing spaces and returns &#8216;xyz&#8217;.<\/span><\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400\">xxv. Upper<\/span><\/h3>\n<p><span style=\"font-weight: 400\">Just as opposite to the lower() function, this function coverts all the characters in the string into uppercase or capital letters. <\/span><\/p>\n<p><strong>The syntax for Upper Qlik Sense String Functions:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Upper(text)<\/pre>\n<p><span style=\"font-weight: 400\">For instance, <\/span><\/p>\n<p><span style=\"font-weight: 400\">Upper(\u2018qliksense\u2019)<\/span><span style=\"font-weight: 400\"> will return \u2018QLIKSENSE\u2019.<\/span><\/p>\n<p>So, this was all in Qlik Sense String Functions. Hope you like our explanation.<\/p>\n<h2><span style=\"font-weight: 400\">3. Conclusion <\/span><\/h2>\n<p><span style=\"font-weight: 400\">Hence, these were all the Qlik Sense String functions which are applied on a string when the strings are used in a script. We hope the explanations given in this lesson were helpful enough for you to start using these functions into your data load script of Qlik Sense.<\/span><\/p>\n<p>Still, if you have any query regarding Qlik Sense String Functions, ask in the comment tab.<\/p>\n<p><strong>See also &#8211;\u00a0<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/\"><strong>Qlik Sense In Functions<\/strong><\/a><\/p>\n<p><strong><a href=\"https:\/\/www.qlik.com\/us\/products\/qlik-sense\">Reference for Qlik Sense\u00a0<\/a><\/strong><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1641,&quot;href&quot;:&quot;https:\\\/\\\/www.qlik.com\\\/us\\\/products\\\/qlik-sense&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20250910054814\\\/https:\\\/\\\/www.qlik.com\\\/us\\\/products\\\/qlik-sense&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-09 14:59:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-12 19:36:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-16 00:14:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-19 05:16:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-22 07:28:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-25 14:15:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-29 02:13:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-01 05:49:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-04 07:22:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-07 08:15:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-11 13:51:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-14 16:21:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-19 02:44:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-22 03:03:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-25 11:06:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-28 12:37:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-01 00:15:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-04 05:47:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-07 12:47:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-10 15:45:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-13 17:01:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-16 17:50:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-20 06:42:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-23 09:55:01&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-26 10:25:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-01 16:39:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-05 05:06:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 11:22:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-11 13:38:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-14 19:24:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-18 01:36:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-21 23:13:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-25 01:59:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-29 13:02:13&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-01 13:05:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-04 14:23:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-07 17:56:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-10 21:58:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-14 04:26:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-17 06:08:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-20 07:37:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-23 09:28:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-27 07:37:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-30 08:39:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-04 07:49:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-07 09:05:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-10 12:55:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-13 15:31:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-17 20:04:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-21 03:24:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-25 05:12:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-28 09:09:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-01 06:19:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-04 09:38:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-07 13:53:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-10 23:30:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-14 12:40:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-17 13:15:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-20 15:32:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-23 15:36:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-27 02:26:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-30 05:49:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-03 06:52:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-06 08:01:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-09 09:19:08&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-09 09:19:08&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Objective Earlier, we have discussed Qlik Sense Formatting Functions. Today, we will see the Qlik Sense String Functions Tutorial. The Qlik Sense String Functions are applied to the strings or text values used&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":43120,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17408],"tags":[17699,17697,17698],"class_list":["post-42991","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qlik-sense-tutorials","tag-qlik-sense-functions","tag-qlik-sense-string-functions","tag-string-functions-in-qlik-sense"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Qlik Sense String Functions - Syntax and Example - DataFlair<\/title>\n<meta name=\"description\" content=\"Qlik Sense String Functions with Syntax and Examples-capitalize,chr,FindOneOf,evaluate,substringcount,textbetween,trim,upper,subfield,RTrim\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Qlik Sense String Functions - Syntax and Example - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Qlik Sense String Functions with Syntax and Examples-capitalize,chr,FindOneOf,evaluate,substringcount,textbetween,trim,upper,subfield,RTrim\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-22T09:51:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Qlik Sense String Functions - Syntax and Example - DataFlair","description":"Qlik Sense String Functions with Syntax and Examples-capitalize,chr,FindOneOf,evaluate,substringcount,textbetween,trim,upper,subfield,RTrim","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/","og_locale":"en_US","og_type":"article","og_title":"Qlik Sense String Functions - Syntax and Example - DataFlair","og_description":"Qlik Sense String Functions with Syntax and Examples-capitalize,chr,FindOneOf,evaluate,substringcount,textbetween,trim,upper,subfield,RTrim","og_url":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-11-22T09:51:29+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Qlik Sense String Functions &#8211; Syntax and Example","datePublished":"2018-11-22T09:51:29+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/"},"wordCount":2430,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01.jpg","keywords":["Qlik Sense functions","Qlik Sense String Functions","String Functions in Qlik Sense"],"articleSection":["Qlik Sense Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/","url":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/","name":"Qlik Sense String Functions - Syntax and Example - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01.jpg","datePublished":"2018-11-22T09:51:29+00:00","description":"Qlik Sense String Functions with Syntax and Examples-capitalize,chr,FindOneOf,evaluate,substringcount,textbetween,trim,upper,subfield,RTrim","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-String-Functions-01.jpg","width":1200,"height":628,"caption":"Qlik Sense String Functions - Syntax and Example"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Qlik Sense Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/qlik-sense-tutorials\/"},{"@type":"ListItem","position":3,"name":"Qlik Sense String Functions &#8211; Syntax and Example"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/42991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=42991"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/42991\/revisions"}],"predecessor-version":[{"id":43122,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/42991\/revisions\/43122"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/43120"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=42991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=42991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=42991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}