Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi !
I have a sales table with an INVOICEDATE field. I also have a currency history table that looks like the below image, with "valid from" and a "valid to" date. I'm trying to get the exchange rate that was effective on each INVOICEDATE of my sales table.
Could someone help ?
Thank you in advance !
Solved! Go to Solution.
Simpliest way is to use Add Column and use List.Dates in Power Query to get all the dates between the two values.
List.Dates( [Valid From], Duration.Days( [Valid To] - [Valid From] ) +1, #duration(1, 0,0,0) )
Simpliest way is to use Add Column and use List.Dates in Power Query to get all the dates between the two values.
List.Dates( [Valid From], Duration.Days( [Valid To] - [Valid From] ) +1, #duration(1, 0,0,0) )
I'm working on a very similar problem - implemented your solution, but I must be missing a trick.
It's now outputting the new column as a list - how do I then go about matching the right value to all dates in that list?
Wow !!!!! That is awesome !!!!!!!! Works perfectly. Thank you so much Nick_M !!!!
User | Count |
---|---|
102 | |
92 | |
85 | |
78 | |
71 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |