Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Sra1bandi
Contributor III
Contributor III

How to separate Plant number from text

Hi Team,

 

Load inline [

S.no           Plant 

1                 11AM - COMPLETED

2                 1102 - COMPLETED

3                 7185-WF Completed

4                 11AC - WF Completed

5                 Not valid

6                completed

7                No STATUS           ]

 

I need result like below for 5,6,7 i need '-' like mentioned below.

 

S.no      Plant

1             11AM

2             1102

3             7185

4             11AC

5                 -

6                -

7               -

 

Regards,

Sra1.

 

 

 

Labels (1)
1 Reply
BrunPierre
Partner - Master
Partner - Master

Hi, one solution could be this.

If(SubStringCount(Plant, '-') > 0, SubField(Plant, '-', 1), '-') as [Plant number]