Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
ramrongala
Contributor II
Contributor II

How to delete space and delete up to space

Hi

Here i have 2 doubts 1)  delete space between the names

                                 2)  delete up to space from right side or left side

below is sample code

LEFT.png

1) combine into single name without space like "murthy rongal" into murthyrongala

2) delete up to spaces like "murthy rongal" into either "murthy" or "rongala"

i tried in scrpit level  left() ,len() ,Trim(),ltrim() and rtrim() but no use

please help me on this

i attached QVW file also. so we can modify and send it if possible

1 Solution

Accepted Solutions
aarkay29
Specialist
Specialist

3 Replies
sunny_talwar

May be like this:

LOAD name,

    sal,

    PurgeChar(name, ' ') as name_option1,

    SubField(name, ' ', 1) as name_option2

FROM

[left.xlsx]

(ooxml, embedded labels, table is Sheet1);


Capture.PNG

aarkay29
Specialist
Specialist

ramrongala
Contributor II
Contributor II
Author

Bro its working fine