NBU exchange rates in Power BI
A ready Power Query that loads the National Bank of Ukraine’s official rates and refreshes with your report, plus a measure that converts amounts into the currency you need.
Power Query
- Home → Get data → Blank query → Advanced editor, paste the code.
- Name the query as in the field above and choose Close & apply.
- When asked how to connect, choose Anonymous: the NBU API is public.
The NBU sets rates on working days. The query asks for one currency and one year at a time, which lets the API accept any period.
Conversion measure
DAX
For large tables it’s faster to add the rate to the sales table in Power Query (merge on date and currency) and use a simple sum.
Files are processed only in your browser and are never sent anywhere.