Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Ijimo
Frequent Visitor

Merge tables based upon Start and End dates(table without relation)

I have table Operation (Date , Amount) and table Exchenge_rate (start_date, rate, end_date).

The specific exchange rate has been for several days. In Exchenge_rate table this is one row.

I need merge this table (perhaps there is another way), and get value Currency_Amount = Value/rate.

Perhaps this is a simple task, but I still only starting their way in Power BI.

I will be very grateful for any help

1 REPLY 1
austinsense
Impactful Individual
Impactful Individual

For starters, I would keep these tables separate and write a calculated column once the query is loaded.

 

The calculated column on the Operation table might look like this ...

 

Exchange Rate = CALCULATE( IFERROR(VALUES(Exchange_Rate[Rate]),BLANK()), FILTER(Exchange_Rate, EARLIER(Operation[Date])>=Exchange_Rate[Start_Date]&&EARLIER(Operation[Date])<=Exchange_Rate[End_Date]))
Austin is VP Operations at PowerPivotPro and a professional self-service enthusiast 🙂

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.