Go to example tasks

Combine runs and keep only the newest row per key

Read datasets or files from oldest to newest and keep the last row seen for each key, so every record shows its latest values. Here: exchange rates a year apart, the latest rate per currency.

Try for free
Merge & Dedupe Datasets: Combine Runs, Remove Duplicates
Merge & Dedupe Datasets: Combine Runs, Remove Duplicateshumble-echidna/dataset-merge
Country
Currency
Units per USD
Rate date
Text
Number
Boolean
List
Object

Input

Or: file URLs (CSV, JSON, JSONL or Excel):https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/accounting/od/rates_of_exchange?format=csv&filter=record_date:eq:2024-12-31&page[size]=300+1
Dedupe by (fields that make a row unique):country_currency_desc
Which duplicate to keep:last

Output fields

Country
Currency
Units per USD
Rate date

How it works

Sign up on Apify or log in

The Merge & Dedupe Datasets: Combine Runs, Remove Duplicates Actor is ready to run with the inputs already set for "Combine runs and keep only the newest row per key". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Combine runs and keep only the newest row per key" task

The Merge & Dedupe Datasets: Combine Runs, Remove Duplicates Actor will start running based on the input automatically. You can also change all the input fields, like or: file urls (csv, json, jsonl or excel), dedupe by (fields that make a row unique), and more, to match your specific use case.

Receive the "Combine runs and keep only the newest row per key" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as country, currency, units per usd, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Combine runs and keep only the newest row per key" task via API.

Image

Integrate "Combine runs and keep only the newest row per key" into your workflow

Connect "Combine runs and keep only the newest row per key" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay