Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
Is there a function in Qlikview equivalent to SQL Left and Right function.
I have a "~" separator and would like to get values to the left of it.
1~08-24 should return 1
125~feb 28 should return 125
You can use the subfield for this with ~ as field separator. subfield('1~08~24', '~', 1) will return 1
You can use the subfield for this with ~ as field separator. subfield('1~08~24', '~', 1) will return 1
Another Way
=TextBetween('~'&'125~feb 28','~','~')
Hi,
You can use subfield as Gysberts said / you can use Left() like this
Left(Fieldname, Index(Fieldname, '~')-1) as FieldName
I often use the QV mid() function as simpler alternative to the QV left() and right() functions.
Thanks a lot guys for the solution