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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.