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! It's time to submit your entry. Live now!
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,
| User | Count |
|---|---|
| 50 | |
| 43 | |
| 36 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 139 | |
| 129 | |
| 61 | |
| 59 | |
| 57 |