Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Retorna uma sequência específica de caracteres do texto.
Exemplo de uso
SUBSTR(Campaign, 1, 6)
Sintaxe
SUBSTR(X, start_index, length)
Parâmetros
X: um campo ou uma expressão de qualquer tipo.
start_index: a posição no começo da string que inicia a extração.
length: o número de caracteres a serem extraídos.
Observações
O primeiro caractere de um campo está no índice 1.
Para começar a extrair do fim da string, use um índice negativo. O último caractere de uma string está no índice -1, o penúltimo, em -2 e assim por diante.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-07-31 UTC."],[],[],null,["# SUBSTR\n\nReturns a specific sequence of characters from the text.\n\nSample usage\n------------\n\n`SUBSTR(Campaign, 1, 6)`\n\nSyntax\n------\n\n`SUBSTR(`\u003cvar translate=\"no\"\u003eX\u003c/var\u003e`, `\u003cvar translate=\"no\"\u003estart_index\u003c/var\u003e`, `\u003cvar translate=\"no\"\u003elength\u003c/var\u003e`)`\n\n### Parameters\n\n- \u003cvar translate=\"no\"\u003eX\u003c/var\u003e - A field or expression of any type.\n- \u003cvar translate=\"no\"\u003estart_index\u003c/var\u003e - The position from the start of the string from which to begin extracting.\n- \u003cvar translate=\"no\"\u003elength\u003c/var\u003e - The number of characters to extract.\n\n### Notes\n\n- The first character of a field is at index 1.\n- To begin extracting from the end of the string, use a negative index. The last character of a string is at index -1, the second to the last is at -2, etc.\n\nExamples\n--------\n\nRelated resources\n-----------------\n\n- [Calculated fields](/looker/docs/studio/about-calculated-fields)\n- [Looker Studio function list](/looker/docs/studio/function-list)"]]