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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
pgalvezt
Specialist
Specialist

Delete Specific Data

Hello,

I have historical data and I would like to erase all data that contains:

Restaur Alamanda

01/01/2013  Alamanda si Benectido

01/01/2014  Alamanda si Benectido

01/01/2015  Alamanda si Benectido

01/01/2016  Alamanda si Benectido

01/01/2017  Alamanda si Benectido

The next year will appear.

01/01/2018 Alamanda si Benectido Must be dissapear too and so on for the entire years.


I attached a xls sample for better comprehenssion,


Thanks!

1 Solution

Accepted Solutions
luismadriz
Specialist
Specialist

Hi Pablo,

Maybe you could insert a where clause to exclude those values by looking into that specific text string field (DESC)

Or if in Qlik you could use this:

// After YourTable has been loaded

TableWithoutAlamanda:

NoConcatenate

Load *

Resident YourTable

Where Index(DESC,'Alamanda si Benectido') = 0 AND Index(DESC,'Restaur Alamanda') = 0;

Drop Table YourTable;

I hope this helps,

Cheers,

Luis

PS. When applicable please mark the appropriate replies as Correct. This will help community members know which discussions have already been addressed and have a possible known solution. Please mark replies as Helpful if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as Helpful if you feel additional info is useful to others

View solution in original post

2 Replies
luismadriz
Specialist
Specialist

Hi Pablo,

Maybe you could insert a where clause to exclude those values by looking into that specific text string field (DESC)

Or if in Qlik you could use this:

// After YourTable has been loaded

TableWithoutAlamanda:

NoConcatenate

Load *

Resident YourTable

Where Index(DESC,'Alamanda si Benectido') = 0 AND Index(DESC,'Restaur Alamanda') = 0;

Drop Table YourTable;

I hope this helps,

Cheers,

Luis

PS. When applicable please mark the appropriate replies as Correct. This will help community members know which discussions have already been addressed and have a possible known solution. Please mark replies as Helpful if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as Helpful if you feel additional info is useful to others

luismadriz
Specialist
Specialist

Other function could be SubStringCount() I think

Cheers,

Luis

PS. When applicable please mark the appropriate replies as Correct. This will help community members know which discussions have already been addressed and have a possible known solution. Please mark replies as Helpful if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as Helpful if you feel additional info is useful to others