Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello All ,
I need to refer to table B and get the appropriate exchange rate for a transaction based on the posting date (table A). Ignore the currency code as report need to be presented in SGD value.
condition 1 : If the posting date falls between the starting date and ending date specified in Table B, then the corresponding exchange rate in Table A should be used for that transaction.
condition 2 : If there is no ending date specified in Table B and the posting date is after the starting date, then the exchange rate to be applied should be the last row of exchange rates listed in Table B.
Is there any method to meet this condition ? Thanks !
@New_hello188 , A new column in table 2
Maxx(filter(Table2, Table1[Currentcy Code] = table2[currency code] && Table1[Date] >= Table2[Start Date] &&( isblank(Table2[End Date]) || Table1[Date] <= Table2[End Date]) ) , Table2[Exchnage_Rate])
refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
Thank you !
Could you please guide , how can I also apply filter at the currency code at Table B ?
The actual data in Table B consists of lots of different currency code and I only need SGD rate return to Table A even though the currency code is in USD.
I tried to modify your measure to meet above condition , but it was not working.
Maxx(filter(Table2, Table1[Currentcy Code] = table2[currency code] = "SGD" && Table1[Date] >= Table2[Start Date] &&( isblank(Table2[End Date]) || Table1[Date] <= Table2[End Date]) ) , Table2[Exchnage_Rate])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |