Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Comparing QVD Dates using Set Analysis

Hi,

Is there a technique to use set analysis to compare dates - loaded from QVD files?

I load the QVD data using the following script:

LOAD

filename() as FileName,

date(date#(mid(filename(), 12, 10), 'DD-MM-YYYY'), 'DD-MM-YYYY') as OrderDate,

**

FROM

[...Qlik Historic\Bookmaster_*.QVD]

(qvd);


My first formula I wrote is: sum({$<OrderDate={"04-05-2018"}>}[Loan Value(USD)]) - this is not working

Ideally I want to get to a point where the date is 'Today()-7' so that the data constantly rolls everyday.

Is this feasible?

Your assistance is much appreciated

1 Solution

Accepted Solutions
sasiparupudi1
Master III
Master III

{"$(=Date(Today()-5,'DD/MM/YYYY'))"}

View solution in original post

3 Replies
sasiparupudi1
Master III
Master III

May be try

sum({$<OrderDate={"$(=MakeDate(2018,5,4))"}>}[Loan Value(USD)])

what format of date do you see if you put OrderDate Field in a list box? number? or text

Anonymous
Not applicable
Author

Hi Sasidhar,

That is great and has rectified my first set analysis question!
The OrderDate field is DD/MM/YYYY - which now explains why my original formula was not working with DD-MM-YYYY!


Do you know of a method of not specifying a date but adding "today()-5" for example?

sasiparupudi1
Master III
Master III

{"$(=Date(Today()-5,'DD/MM/YYYY'))"}