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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Syntax where in qvd load not working

Hi All,

Please give me help about this syntax :

Load

     Bulan

     ,Tanggal

     ,Tahun

FROM

[..\QVD\QvComp.qvd]

(qvd)

Where Date(Date#(Bulan & '/' & Tanggal & '/' & Tahun, 'M/D/YYYY')) <= Date(Date#('$(V_PERIODCLOSE)', 'M/D/YYYY'));

Why the where condition is not working ?

Did I mistake something ?

Thank you all

24 Replies
omkarvamsi
Creator
Creator

if you get the result,Please close the thread " as answered"

Qlik Community Tip: Marking Replies as Correct or Helpful

Not applicable
Author

Hi Omkar,

I have try :

where num(Date(MakeDate(yyyy,m,d),'YYYY-MM-DD'))<=$(V_PERIODCLOSE);

and

where num(Date(MakeDate(yyyy,m,d),'DD/MM/YYYY'))<=Date($(V_PERIODCLOSE),'DD/MM/YYYY');

The condition is :

- V_PERIODCLOSE = 2016-11-30

- I have change for column = yyyy (2017 --> 2016) in SampleData.xlsx

I have run for that condition, and the result :

QvCompoundingOracle << Sheet1 0 lines fetched

That not right.

But the strange is, when I have change "where condition < with > " :

where num(Date(MakeDate(yyyy,m,d),'YYYY-MM-DD'))>=$(V_PERIODCLOSE);

The result :

QvCompoundingOracle << Sheet1 7 lines fetched

omkarvamsi
Creator
Creator

please make sure the date in variable $(V_PERIODCLOSE) is in num format.

if it is not,

you can convert like this as below

LET V_PERIODCLOSE= num(Date([Date field]));

Not applicable
Author

Hi Omkar,

That's work.

Conclusion : the date filter is more easy if we use num.

Thank you very much

omkarvamsi
Creator
Creator

Please mark questioned as answered.

thank you