Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
tulsidaskhan
Contributor
Contributor

Drop Data

Hi,

After every reload a date is captured in a variable. can i drop data for this particular date  by using drop statement.

Assumption: Something like  " Drop table Abc where date<= variable"

Thanks,

Piyush Jain

3 Replies
Kushal_Chawda

How you are capturing the Date in variable?

Mark_Little
Luminary
Luminary

Hi,

You would need to do a resident load.

So

Load

     *

Resident YourTable

Where Date > $(variable);

might need to think about the date formats,

Mark

jonathandienst
Partner - Champion III
Partner - Champion III

Like this:

If date <= variable Then

      Drop table Abc;

End If


Make sure that the date and the variables are valid numeric date values.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein