Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
slribeiro
Partner - Creator
Partner - Creator

Remove Data by Date in script

Greetings, i'm new at this and would be amasing if you could help me.

I have one table like the following:

Name, Value, Date

A1, 3, 06-03-2015

A2, 2, 07-03-2015

A3, 6, 15-03-2015

A4, 4, 01-03-2015

How do i remove the data after 10-03-2015 in script?

I want to define a data in a variable and in this example have a final table like this:

Name, Value, Date

A1, 3, 06-03-2015

A2, 2, 07-03-2015

A4, 4, 01-03-2015

Best regards

Simão Ribeiro

1 Solution

Accepted Solutions
engishfaque
Specialist III
Specialist III

Dear Simao,

Kindly find attached document, I hope you are looking for that one.

Kind regards,

Ishfaque Ahmed

View solution in original post

2 Replies
swuehl
MVP
MVP

Set DateFormat = 'DD-MM-YYYY';

Let vDate = Num(MakeDate(2015,3,10));

LOAD Name, Value, Date

FROM YourDataSource

WHERE Date <= $(vDate);

engishfaque
Specialist III
Specialist III

Dear Simao,

Kindly find attached document, I hope you are looking for that one.

Kind regards,

Ishfaque Ahmed