Payment volume in US dollars

HardPayPalforward filljoinsgenerate seriescase whenaggregation· 40 XP

PayPal's finance team reports payment volume in US dollars, but payments come in USD, EUR and GBP. Exchange rates in fx_rates are published on weekdays only, and a few days are missing. The rule: use the latest rate published on or before the payment's date.

For completed transactions in the first quarter of 2026 (January to March), convert each amount to USD, then show the total USD volume per merchant category. USD amounts stay as they are; EUR and GBP amounts are multiplied by that currency's rate for the day.

Expected output

  • usd_volume rounded to 2 decimals; any row order

Example of the shape (made-up values):

category usd_volume
Travel 25500.00

Hints, the later steps and the answer come with Pro.

Write your query here. Ctrl + Enter submits.