Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

want to know how to replace?

I want to replace IN and IC from IN020347 and IC236484 from a column in qliksense?

 

User ID
IN125417
IC017803
IC017803
1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Use the same function a little bit different:

Replace(Replace([User ID], 'IC', 75), 'IN', 74) AS [User ID]

Miguel

View solution in original post

14 Replies
Miguel_Angel_Baeyens

‌Hi Sid,

Use

Replace(Replace([User ID], 'IC'), 'IN') AS [User ID]

in the script to remove IN and IC

Miguel

Not applicable
Author

hello,

and if I want to replace In with 74 and IC with 75 then ?

Miguel_Angel_Baeyens

Use the same function a little bit different:

Replace(Replace([User ID], 'IC', 75), 'IN', 74) AS [User ID]

Miguel

Not applicable
Author

Hi,

Syntax :

Replace(s, fromstring ,tostring)

i.e. :

Replace('abccde','cc','xyz') will return 'abxyzde'

Let's try :

Replace(Replace([User ID], 'IC','75'), 'IN','74') AS [User ID]

Attention, replace() is maybe case sensitive.

Xavier.

Not applicable
Author

Hello,

again a query I want to arrange weekday from mon to sunday properly as I have downloaded horizontal check box template I dun have sorting option in It so any Expression we can pass ??

Miguel_Angel_Baeyens

Sid,

I'd recommend you to create a different thread with your new question and provide some pictures or examples of what you have and where do you want to get.

When you mean arrange do you mean showing in a chart from Monday to Sunday? Or in the load script?

Miguel

Not applicable
Author

Try to sort by

=num(WeekDay(YourDate))

Not applicable
Author

I want to arrange this properly.151.png

Not applicable
Author

some of them are also small characters not capital like IN and IC they are like in020202 and ic323232