- 04 May 2024
- 1 Minute to read
- DarkLight
Substring
- Updated on 04 May 2024
- 1 Minute to read
- DarkLight
General
The Substring function can be used to extract characters from a String.
Syntax
The syntax of the Substring function is:
Left(<value>, <first_character_index>, <length>)
The character index is zero-based (the first character has an index of 0).
Examples
The following Expression returns a String that contains 3 characters starting from the second character of the value of variable vTest of a Datasource named Consumer Sales:
Substring([Datasource].[Consumer Sales].[Variable].[vTest], 1, 3)