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: 
ena1309
Contributor III
Contributor III

Data Load Editor, select specific Date range to be loaded

HI guys,
 
is it possible and how to do in Data Load Editor, that the last two years only are loaded ?
 
i.e. this first line, to be something like DATE where Date= today(year) - 1 (or -2)  not sure what would be the solution

LOAD
Date(Date#([Run_Date], 'YYYYMMDD') ) AS [Run_Date],
[Division],
[Company_Code],
[Material_Number],
[Material_Description],
[HFI_Quantity],
[Stock_Value],
[Currency]
FROM Table.Example
(txt, unicode, embedded labels, delimiter is '|', msq);

 

 

THANK YOU IN ADVANCE
ENA

Labels (2)
2 Replies
vinieme12
Champion III
Champion III

LOAD

Date(Date#([Run_Date], 'YYYYMMDD')  AS [Run_Date],

[Division],

[Company_Code],

[Material_Number],

[Material_Description],

[HFI_Quantity],

[Stock_Value],

[Currency]

FROM Table.Example

(txt, unicode, embedded labels, delimiter is '|', msq)

Where Date(Date#([Run_Date], 'YYYYMMDD') )>=yearstart(today(),-1);

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
MarcoWedel

If it's supposed to be a two years period, then maybe:

Where Date#(Run_Date,'YYYYMMDD') > AddYears(Today(),-2)