Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
SunilChauhan
Champion II
Champion II

can we replace chr(10) to ' '

Can we replace  chr(10) in a column

i have tried

Replace(FieldName,chr(10),' ')

its not working

Sunil Chauhan
12 Replies
its_anandrjs

Do you have any sample data for this.

Regards

Anand

anbu1984
Master III
Master III

May be you might have carriage return (13)

Replace(FieldName,chr(13),' ')

SunilChauhan
Champion II
Champion II
Author

its not working

Sunil Chauhan
SunilChauhan
Champion II
Champion II
Author

Hi ,

Data i can't share but see below sample code

Load * inline

Fieldname

SED Escalation

outside of time

High>3 Days

Med>3 Days

Low>10 Days

];

BUT Remember that 

SED Escalation

outside of time

High>3 Days

Med>3 Days

Low>10 Days

is a single value

which i want as

SED Escalation outside of time High>3 Days Med>3 Days Low>10 Days.



Sunil Chauhan
anbu1984
Master III
Master III

What is your input? Excel or Inline load?

In Inline load, these are different rows.

SunilChauhan
Champion II
Champion II
Author

its from sql server

Sunil Chauhan
jagan
Luminary Alumni
Luminary Alumni

Hi,

Check this script

Temp:

Load Concat(Fieldname, '', Order) AS NewField

inline

[Order, Fieldname

1, SED Escalation

2,outside of time

3, High>3 Days

4, Med>3 Days

5, Low>10 Days

];

Regards,

jagan.

jagan
Luminary Alumni
Luminary Alumni

Hi,

Little bit improvised

Temp:

Load Concat(DISTINCT  Fieldname, '', RecNo()) AS NewField

inline

[Fieldname

SED Escalation

outside of time

High>3 Days

Med>3 Days

Low>10 Days

];

Regards,

Jagan.

anbu1984
Master III
Master III

Try sql server function REPLACE ( Field , char(10), ' ' )

Try with Char(13)