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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Felipe02
Contributor III
Contributor III

Pull last records based on a date

How do I pull this table with only the lines with the highest value of "Data Entrada" and grouped by "Processo" and "Ordem de Compra" ?

[TRANSFORMACAO_SICWEB]:
LOAD
    "Ordem de Compra",
    "Numero da SIC",
    "Codigo_fornecedor",
    "Codigo_transportadora",
    "Processo",
    "Data abertura",
    "Situacao",
    "Tipo Compra",
    "Tipo de Categoria",
    "Tipo SUB Categoria",
    "Numero do Projeto",
    "Descricao do Projeto",
    "% ICMS",
    "Frete",
    "Tipo de Prazo",
    "Descricao",
    "Motivo",
    "Descricao Item",
    "UN Item",
    "Quantidade do Item",
    "Preco unitario do Item",
    "% IPI Item",
    "Valor Total Item",
    "Aprovador",
    "Nome do solicitante",
    "Comprador",
    "Valor Total",
    "Nome Transportadora",
    "Prazo de entrega",
    "Centro de Custo",
    "Data da OC",
    "Status da OC",
    "Frete_SICWEB",
    "Frete_OC",
    "Frete_fornecedor",
    "Parcela",
    "Prazo medio de pagamento",
    "Nome do Fornecedor",
    "CNPJ/CPF",
    "NFe",
    "Data Entrada"
    RESIDENT DADOS_SICWEB;
Labels (4)
1 Solution

Accepted Solutions
Gabbar
Specialist
Specialist

Try Using Inner join like this

Maintable:
Load * from Source;
Inner join
Load Max("Data Entrada") as "Data Entrada" resident Maintable;

If you want to also group the data you can use those field in inner join table 2

View solution in original post

1 Reply
Gabbar
Specialist
Specialist

Try Using Inner join like this

Maintable:
Load * from Source;
Inner join
Load Max("Data Entrada") as "Data Entrada" resident Maintable;

If you want to also group the data you can use those field in inner join table 2