Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi!
I'm trying to create a calculated column that tells me the Exchange Rate of a particular value based both on a date and a location (i.e IF the salary expectation is from X location & X date, divide the salary expectation with the exchange rate that is between the start date & end date of the X date).
Exchange rates table:
These are the columns used from the Fact table:
Hi @fernandoC ,
Create a calendar table and then create relationships with the other two tables.
Create a new column in the calendar table.
rate = CALCULATE(
MAX('Table'[Exchange Rate]),
FILTER('Table','Calendar'[Date]>='Table'[Start Date]&&'Calendar'[Date]<='Table'[End Date]))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @V-lianl-msft ,
Thank you very much for your help on this.
I think the logic is going the right way, the only thing I'm missing is that currently it takes a rate based on a date but I need also that it takes the value from an specific currency as it will vary depending on the location. (i.e MOD will use UYU currency but ISD would use a different one), Im guessing nested IF's would do the work.
Thanks again for all your help.
Best,
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 33 | |
| 32 | |
| 31 | |
| 26 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |