Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ignoring values in Script

Hi

Here is my Sample data in a field , I want to ignore the values anything which has text after Payroll:v1/returns/ and  Payroll:v1/submissions/ in the script .. how can I achieve this?

Thanks

   

Sample Data
Payroll:v1/submissions/
Payroll:v1/submissions/checklimit/
Payroll:/transactionidentityverifications
Payroll:v1/returns/
Payroll:v1/returns/numbera2461865320db320153365bd07d11f3/
Indirect Tax V3
Indirect Tax V3:taxagencyv3
Expected Output
Payroll:v1/submissions/
Payroll:/transactionidentityverifications
Payroll:v1/returns/
Indirect Tax V3
Indirect Tax V3:taxagencyv3
1 Solution

Accepted Solutions
maxgro
MVP
MVP

1.png



Table:

LOAD *

where match(Field, 'Payroll:v1/returns/', 'Payroll:v1/submissions/')

or not wildmatch(Field, 'Payroll:v1/returns/*', 'Payroll:v1/submissions/*') 

  ;

LOAD * Inline [

Field

Payroll:v1/submissions/

Payroll:v1/submissions/checklimit/

Payroll:/transactionidentityverifications

Payroll:v1/returns/

Payroll:v1/returns/numbera2461865320db320153365bd07d11f3/

Indirect Tax V3

Indirect Tax V3:taxagencyv3

];

View solution in original post

3 Replies
sunny_talwar

May be this:

Table:

LOAD *,

// Index(Field, '/', 2) as Count,

  If(Index(Field, '/', 2) > 0, Left(Field, Index(Field, '/', 2)), Field) as New_Field ;

LOAD * Inline [

Field

Payroll:v1/submissions/

Payroll:v1/submissions/checklimit/

Payroll:/transactionidentityverifications

Payroll:v1/returns/

Payroll:v1/returns/numbera2461865320db320153365bd07d11f3/

Indirect Tax V3

Indirect Tax V3:taxagencyv3

];

Not applicable
Author

there are these type of values also ,which I still wanted to be .. so I think we have to explicitly mention the values

Payroll:v1/submissions/ and Payroll:v1/returns/

   

Payments:/case-management-ws/v1/calendarDate
Payments:/case-management-ws/v1/merchant/number/cases/number/documents
maxgro
MVP
MVP

1.png



Table:

LOAD *

where match(Field, 'Payroll:v1/returns/', 'Payroll:v1/submissions/')

or not wildmatch(Field, 'Payroll:v1/returns/*', 'Payroll:v1/submissions/*') 

  ;

LOAD * Inline [

Field

Payroll:v1/submissions/

Payroll:v1/submissions/checklimit/

Payroll:/transactionidentityverifications

Payroll:v1/returns/

Payroll:v1/returns/numbera2461865320db320153365bd07d11f3/

Indirect Tax V3

Indirect Tax V3:taxagencyv3

];