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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
vinod2086
Creator II
Creator II

How to split single field into multiple fields

Hi ,

My input

s.nocircuit_speed
1OTHERS
2Others MBPS
3NA
4Not Applicable
5620
633.512
733.512
811 Mbps
92 kbps
1040.20 gbps
1112 gb

but am expecting output see below

s.nocircuit_speedUnit
1OTHERS
2Others MBPS
3NA
4Not Applicable
5620
633.512
733.512
811Mbps
92 kbps
1040.2gbps
1112gb
1 Solution

Accepted Solutions
PrashantSangle

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

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

3 Replies
Not applicable

Keepchar('Others MBPS','MBPS') as unit

Anonymous
Not applicable

Do you have an algorithm for the split ?

Cannot split on the space a 'Not Applicable" has a space

PrashantSangle

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

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂