Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Doubt in a left statement

T1:

Load * Inline [

F1

123456

];

No Concatenate

T2:

Load

          left([F1],2) as F2,

          left([F1],-1) as Fneg   // i have a doubt what this staement does.. or what is its output.

Resident T1;                      // what this statement does...

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

try it in a text box and see for yourself

LEFT('ABCD',2)  >> will return 2 character starting from left of the string, so string returned is 'AB'

LEFT('ABCD',-1) >> will return null as string starts from position 1

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
vinieme12
Champion III
Champion III

try it in a text box and see for yourself

LEFT('ABCD',2)  >> will return 2 character starting from left of the string, so string returned is 'AB'

LEFT('ABCD',-1) >> will return null as string starts from position 1

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

You can find examples for all functions in Qlikview help

https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/Left.h...

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Anonymous
Not applicable
Author

Thanks Vineeth.

what about Resident statement...

vinieme12
Champion III
Champion III

You can find a lot of content just be searching the community for the related topic

Space Search | Qlik Community

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.