March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I've got a table called trandata what has a column called CurrencyDate, and CurrencyCode
There is another tabled called CurRates what has a RateDate and CurrencyCode, and the value I want called SellRate
The CurRates table has unique values in it for each CurrencyCode (values 1-5) and then the Date (RateDate) to give the sellrate (example 1.45)
I'm trying to make a calculated column in trandata called CurrencyRate using the lookupvalue function to retreuve the CurRates[SellRate]...but because I'm trying to match two columns I'm not sure how to write the DAX.
I'm trying to lookup the trandata[CurrencyDate] and trandata[CurrencyCode], reference the CurRates[RateDate] and CurRates[CurrecnyCode] to then display the CurRates[SellRate] in Trandata calculated column CurrencyRate.
Can anyone elighten me on a formula for this?
Thanks!
Solved! Go to Solution.
Could you create a concatinated column in your CurRates table that brings together the RateDate and CurCode? Then when you do your Lookup, make the lookup value a concatination of CurrencyDate and CurrencyCode?
You might need to check that they format to create the same string, but it should work.
Could you create a concatinated column in your CurRates table that brings together the RateDate and CurCode? Then when you do your Lookup, make the lookup value a concatination of CurrencyDate and CurrencyCode?
You might need to check that they format to create the same string, but it should work.
I was thinking this too...but because its a whole number and date value I thought it might give an odd result. I'll try it out 🙂
Thanks!!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |