Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Ramu
Contributor III
Contributor III

Separate column for only number values.

Hi All,

Please help me,

In Put data:

LOAD * INLINE [
ID, Set Name
1, PMP_1.2.1.2_Developer Solutions.
2, 2.5.6.21_Research
3, Methodology implementations_5.17.8.6
4, P_2.11.4.5
5, 3.3.3.11_Methods
6, ST_1.2.1_conform
7, Views_2.1_Values
8, 2.4.5.2_Key Points & Key Values.
];

 

I have two fields ID and set Name, 

Required out Put:

ID         Set Name                                                                          Set value

1      PMP_1.2.1.2_Developer Solutions.                               1.2.1.2
2     2.5.6.21_Research                                                                 2.5.6.21
3     Methodology implementations_5.17.8.6                  5.17.8.6
4      P_2.11.4.5                                                                              2.11.4.5
5     3.3.3.11_Methods                                                               3.3.3.11
6     ST_1.2.1_conform                                                              1.2.1
7     Views_2.1_Values                                                               2.1
8     2.4.5.2_Key Points & Key Values.                                 2.4.5.2

I want to get only Number form the set Name field above format.

 

Please Help me , Thanks.

1 Solution

Accepted Solutions
Saravanan_Desingh

One solution is.

tab1:
LOAD *
Where Flag;
LOAD *, FindOneOf([Set Value],'1234567890') As Flag
;
LOAD *, SubField([Set Name],'_') As [Set Value]
;
LOAD * INLINE [
ID, Set Name
1, PMP_1.2.1.2_Developer Solutions.
2, 2.5.6.21_Research
3, Methodology implementations_5.17.8.6
4, P_2.11.4.5
5, 3.3.3.11_Methods
6, ST_1.2.1_conform
7, Views_2.1_Values
8, 2.4.5.2_Key Points & Key Values.
];

View solution in original post

4 Replies
Saravanan_Desingh

One solution is.

tab1:
LOAD *
Where Flag;
LOAD *, FindOneOf([Set Value],'1234567890') As Flag
;
LOAD *, SubField([Set Name],'_') As [Set Value]
;
LOAD * INLINE [
ID, Set Name
1, PMP_1.2.1.2_Developer Solutions.
2, 2.5.6.21_Research
3, Methodology implementations_5.17.8.6
4, P_2.11.4.5
5, 3.3.3.11_Methods
6, ST_1.2.1_conform
7, Views_2.1_Values
8, 2.4.5.2_Key Points & Key Values.
];
Saravanan_Desingh

commQV77.PNG

Ramu
Contributor III
Contributor III
Author

Hi Saran,

Thank You.

Saravanan_Desingh

you welcome