Forum Discussion
Currency Conversion
Hi!!
I am writing to ask a favor I was trying but I'm not getting a success. I have 3 tables one is for the selector of the target currency, the other is for sales, and another with the conversion rates between date from and date to
| Transaction Currency | Target Currency | Date From | Date To | RATE |
| AUD | DKK | 30/04/2017 00:00 | 29/09/2017 00:00 | 508.46 |
| AUD | DKK | 30/09/2017 00:00 | 30/10/2017 00:00 | 493.68 |
| AUD | DKK | 31/10/2017 00:00 | 29/11/2017 00:00 | 489.23 |
| AUD | DKK | 30/11/2017 00:00 | 30/12/2017 00:00 | 475.23 |
| INVOICENUMBER | LINECREATIONSEQUENCENUMBER | INVOICEDATE | Shipped Date | Target Currency | Shipped Value |
| 1005018042 | 8 | 04/01/2019 00:00 | 02/01/2019 00:00 | EUR | 39 |
| 1005018042 | 12 | 04/01/2019 00:00 | 02/01/2019 00:00 | EUR | 111.5 |
| 1005018042 | 13 | 04/01/2019 00:00 | 02/01/2019 00:00 | EUR | 107.75 |
| 1005018042 | 14 | 04/01/2019 00:00 | 02/01/2019 00:00 | EUR | 107.75 |
| 1005018042 | 15 | 04/01/2019 00:00 | 02/01/2019 00:00 | EUR | 107.75 |
| 1005018042 | 16 | 04/01/2019 00:00 | 02/01/2019 00:00 | EUR | 107.75 |
| 1005018119 | 8 | 07/01/2019 00:00 | 07/01/2019 00:00 | EUR | 3 |
| 1005018119 | 9 | 07/01/2019 00:00 | 07/01/2019 00:00 | EUR | 1.64 |
I am trying to create a dax measure that brings the rate of a selection of target currency and multiply by sales value, but every rate depends on the range of date of the rate table.
Hope you can help me,
Thanks
https://www.dropbox.com/s/ktvels8mlf6agbf/SampleFile.pbix?dl=0
1 Reply
- AnonymousNot applicable
Hi Anonymous ,
Your link cannot be displayed after I open it, and the Target Currency of your two tables are not the same, and the logic cannot be judged
I would like to ask, what do you mean is based on the selection based on the Target Currency, and then check whether it is between the Date From and the Date To according to the selected Target Currency date, if it is, then Shipped Value * RATE
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.