Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Spacing

Hi All, 

I have fetched the data from Oracle DB and converted into  QVD . 

I have field called Dept when i load the data , I see 2 two TSTS as shown in the screenshot below . 

One is with space and the other is witout space . How do i make it as one entry . 

 

 

 

Thanks in Avdnace 

1 Solution

Accepted Solutions
FakeJupiter
Creator
Creator

Hi.

Tell me more about the field.

Are all values supposed to be 4 letters long?

If so, try this in script:

 

left(Dept, 4) as Dept

 

 

 

If that doesn't help, you can try:

 

keepchar (Dept,'abcdefghijklmnopqrstuvwxyz' ) as Dept

 

 

View solution in original post

9 Replies
smilingjohn
Specialist
Specialist
Author

Hi Communtiy,

Any help on this ?

QFabian
Specialist III
Specialist III

hi!, trying to use this in your script :

trim(Dept) as Dept ,

QFabian
smilingjohn
Specialist
Specialist
Author

Trim dont work still it shows double values

QFabian
Specialist III
Specialist III

where is showing the unexpected value?, a filter?

QFabian
smilingjohn
Specialist
Specialist
Author

thhis showing in list box as well as in the table and charts . it is shwoing 2 values one with sapce and and with no space

smilingjohn
Specialist
Specialist
Author

Hi All

Can't we remove the double entry

FakeJupiter
Creator
Creator

Hi.

Tell me more about the field.

Are all values supposed to be 4 letters long?

If so, try this in script:

 

left(Dept, 4) as Dept

 

 

 

If that doesn't help, you can try:

 

keepchar (Dept,'abcdefghijklmnopqrstuvwxyz' ) as Dept

 

 

smilingjohn
Specialist
Specialist
Author

Thanks @FakeJupiter  ,

No , there are of different length and many . 

I want it to appear it as single values , I tried with trim function but still no effect . the output shows 2 values  with space .

FakeJupiter
Creator
Creator

Did the keepchar function I posted before work?