Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Srinivas
Creator
Creator

We want to clean up the values

Hi All,

i want to clean up the values, see below screenshot ,

IDNumProNum
12368412567813203850
12368412567915103910( )(1)(1)
123684125680154( )(5)(1)
12368512568115103910( )(2)(1)
12368512568215103704( )(4)(1)
1236861256831510390( )(3)(1)
123686125684151704( )(2)(1)
12368712568515103910( )(4)(1)

in above screen pronum have different numbers here we need to delete closed  brackets only need before numbers only....I want to see below output way:

IDNumProNum
12368412567813203850
12368412567915103910
123684125680154
12368512568115103910
12368512568215103704
1236861256831510390
123686125684151704
12368712568515103910

Please help on this.

Advance thanks

Munna

5 Replies
Not applicable

Hi Munna,

Subfield(ProNum,'(',1) As ProNum

should give you this result

hope that helps

Joe

alexandros17
Partner - Champion III
Partner - Champion III

=Mid(myField, 1, FindOneOf(myField,'()')-1)

stigchel
Partner - Master
Partner - Master

In your load script you can maybe use something like this:

Load....

....

SubField(ProNum,'(',1) as CleanProNum

.......

From.....

fvelascog72
Partner - Specialist
Partner - Specialist

Try this:

TMP:

LOAD

*,

SubField(ProNum,'(',1) as "TEST"

INLINE [

ID, Num, ProNum

123684, 125678, 13203850

123684, 125679, 15103910( )(1)(1)

123684, 125680, 154( )(5)(1)

123685, 125681, 15103910( )(2)(1)

123685, 125682, 15103704( )(4)(1)

123686, 125683, 1510390( )(3)(1)

123686, 125684, 151704( )(2)(1)

123687, 125685, 15103910( )(4)(1)

];

buzzy996
Master II
Master II

tab3:

Load * Inline [

ID ,Num ,ProNum

123684, 125678, 13203850

123684, 125679, 15103910( )(1)(1)

123684, 125680, 154( )(5)(1)

123685, 125681, 15103910( )(2)(1)

123685, 125682, 15103704( )(4)(1)

123686, 125683, 1510390( )(3)(1)

123686, 125684, 151704( )(2)(1)

123687, 125685, 15103910( )(4)(1)

];

TAB4:

NoConcatenate Load

ID,

Num,

subfield(ProNum,'(',1) as ProNum

resident tab3;

drop table tab3