Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
snifer
Post Patron
Post Patron

2 different table correlation of 3 columns

I need to find out how to find the right result for the two column exchange rate and avg.rate based on the match of column "month" "year" and "currency" 

           
Economic     change in DKK   
           
amountcurrencymonthyear  currencymonth yearexchange rateavg. rate
10EUR12018  EUR120181.51.3
20CZK22018  CZK2201877.5
           
result          
amountcurrencymonthyear exchange rateavg. rate     
10EUR120181.51.3     
20CZK2201877.5     
1 ACCEPTED SOLUTION

@snifer

 

NewColumnExRate = 
LOOKUPVALUE (
    'change in DKK'[exchange rate],
   'change in DKK'[currency], 'Economic'[currency],
    'change in DKK'[month], 'Economic'[month],
    'change in DKK'[year], 'Economic'[year],
    'change in DKK'[source], "actual"
)

View solution in original post

23 REPLIES 23
Anonymous
Not applicable

I forgot to say... after merge, you need to select avg.rate and exchange rate in the column created in the merge
AlB
Super User
Super User

Hi @snifer

 

How about using LOOKUPVALUE()?

yes I thought about lookup and early but i can't make it work for 3 column at same time

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.