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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Raju_6952
Creator III
Creator III

Extraction of Location

Hi ,

I am having difficult situation to extract the numeric from Incident Name for the below cases.

1. IND_BHU_SHU_01A_04_CCTV007

2.IND_BLR_06F_04_VAV
as mentioned above it has two different catageories , I am able to extract the BLR_06 from second case with expression bewlow but first case its not able to get.

SubField(Mid(Incident_Name &'-'& Incident_description, Len(SubField(Incident_Name &'-'& Incident_description, 'IND_', 1)) + 1), '_', 3)).

any Suggestion on this.

Labels (1)
3 Replies
MarcoWedel

please describe properly what your required result would look like, maybe also using additional examples.



Raju_6952
Creator III
Creator III
Author

Hi @MarcoWedel ,

the expected ouput is like below

1. IND_BHU_SHU_01A_04_CCTV007 - output (BHU_01)

2.IND_BLR_06F_04_VAV-output (BLR_06)

the above two rows are from Incident name field. 

 

anat
Master
Master

load *,

subfield(column,'_',2)&'_'&left(keepchar(column,'0123456789'),2) as newfield;

load * inline [

column

1. IND_BHU_SHU_01A_04_CCTV007 

2.IND_BLR_06F_04_VAV

];