Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi ,
My input
| s.no | circuit_speed |
| 1 | OTHERS |
| 2 | Others MBPS |
| 3 | NA |
| 4 | Not Applicable |
| 5 | 620 |
| 6 | 33.512 |
| 7 | 33.512 |
| 8 | 11 Mbps |
| 9 | 2 kbps |
| 10 | 40.20 gbps |
| 11 | 12 gb |
but am expecting output see below
| s.no | circuit_speed | Unit |
| 1 | OTHERS | |
| 2 | Others | MBPS |
| 3 | NA | |
| 4 | Not Applicable | |
| 5 | 620 | |
| 6 | 33.512 | |
| 7 | 33.512 | |
| 8 | 11 | Mbps |
| 9 | 2 | kbps |
| 10 | 40.2 | gbps |
| 11 | 12 | gb |
Hi,
Try this in script,
if(wildmatch(circuit_speed,'*mb*','*kb*','*gb*'),subfield(circuit_speed,' ',2)) as Unit,
if(wildmatch(circuit_speed,'*mb*','*kb*','*gb*'),subfield(circuit_speed,' ',1),circuit_speed) as Ne_Circuit_Speed
Regards
Keepchar('Others MBPS','MBPS') as unit
Do you have an algorithm for the split ?
Cannot split on the space a 'Not Applicable" has a space
Hi,
Try this in script,
if(wildmatch(circuit_speed,'*mb*','*kb*','*gb*'),subfield(circuit_speed,' ',2)) as Unit,
if(wildmatch(circuit_speed,'*mb*','*kb*','*gb*'),subfield(circuit_speed,' ',1),circuit_speed) as Ne_Circuit_Speed
Regards