Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Talk to Experts, a LIVE Q&A Webinar. Bring your Qlik Sense Business questions on Aug. 4th. Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor III
Contributor III

How to replace first 4 digit with # in chart or scipt

Hi Everyone,

I have requirement like to convert first 4 digit into '#' .

EX:- 

I/PO/P
1234567####567
5456990####990
6789076####076
Labels (1)
3 Solutions

Accepted Solutions
Highlighted
MVP & Luminary
MVP & Luminary

Re: How to replace first 4 digit with # in chart or scipt

Maybe: '####' & mid([I/P], 5)

- Marcus

View solution in original post

Highlighted
Partner
Partner

Re: How to replace first 4 digit with # in chart or scipt

Hi Jash,

 

Here you go:

 

Switch:
LOAD
[I/P] as [I/P],
'####'&Right([I/P], LEN([I/P])-4) as [O/P]
;
Load * INLINE [
I/P
11315155
25145156
3141556
441431516
531313155
63123156643
];

View solution in original post

Highlighted
Master
Master

Re: How to replace first 4 digit with # in chart or scipt

maye be :

'####'&right([I/P],len([I/P])-4) as [O/P],
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

View solution in original post

3 Replies
Highlighted
MVP & Luminary
MVP & Luminary

Re: How to replace first 4 digit with # in chart or scipt

Maybe: '####' & mid([I/P], 5)

- Marcus

View solution in original post

Highlighted
Partner
Partner

Re: How to replace first 4 digit with # in chart or scipt

Hi Jash,

 

Here you go:

 

Switch:
LOAD
[I/P] as [I/P],
'####'&Right([I/P], LEN([I/P])-4) as [O/P]
;
Load * INLINE [
I/P
11315155
25145156
3141556
441431516
531313155
63123156643
];

View solution in original post

Highlighted
Master
Master

Re: How to replace first 4 digit with # in chart or scipt

maye be :

'####'&right([I/P],len([I/P])-4) as [O/P],
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

View solution in original post