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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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