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: 
CGJA
Creator II
Creator II

limitar carga de Datos a 3 años

buenas trades 

 

quiero ver si me pueden apoyar en poder limitar la carga de informacion de solo tres años en mi QVD, ya que actualmete me carga todo el Historico

 

G_Table:
LOAD OrigenTabla,
ID,
Mov,
MovOrigen,
MovOrigenID,
MovID,
FechaEmision,
FechaRegistro,
VentaUsr,
FechaFinConteo,
FechaInicioConteo,
MovConcepto,
Proyecto,
UEN,
Upper(Cliente) as Cliente,
ClienteEnviarA,
Almacen,
len(Almacen) as AN,
Articulo,
OpcionSubCuenta,
Cantidad,
Observaciones,
Referencia,
Estatus,
Agente,
OrdenCompra,
Causa,
Precio,
Ejercicio,
Periodo,
PrecioUnitario,
SubTotalVentas,
RFC,
ClaveOpcionVenta,
ClaseClaveOpcion,
ListaPreciosEsp,
Fabricante

FROM
[C:\Users\doc02\Desktop\Qvd\1\MovimientosV1.qvd]
(qvd)Where Sucursal = '1'
and not UEN= '1' and not UEN ='6' and not UEN ='7'
and FechaEmision <= '01/01/2019' and Estatus= 'CONCLUIDO' and Cliente <>'CMEX1871';

 

quiero cargar 2017, 2018, y 2019 solamente ?

 

espero me puedan apoyar

1 Solution

Accepted Solutions
Albert_Candelario

Hello @CGJA ,

Maybe this tip can help.

You could use something like:
Where [DateField], 'DD/MM/YYYY'] >= AddYears(Today(), -3);

Or you could use a fix value instead of Today() as needed depending on your requirements.

And is FechaEmision <= '01/01/2019' and FechaEmision >= '01/01/2016' not successful?

Cheers,

Albert

Please, remember to mark the thread as solved once getting the correct answer

View solution in original post

1 Reply
Albert_Candelario

Hello @CGJA ,

Maybe this tip can help.

You could use something like:
Where [DateField], 'DD/MM/YYYY'] >= AddYears(Today(), -3);

Or you could use a fix value instead of Today() as needed depending on your requirements.

And is FechaEmision <= '01/01/2019' and FechaEmision >= '01/01/2016' not successful?

Cheers,

Albert

Please, remember to mark the thread as solved once getting the correct answer