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
Anonymous
Not applicable

power bi "Index Match" between two different sources

Hello everybody,

 

I have one source file with zip codes mainly from germany that I would like to assign to the respective country. In order to do so, I found out a csv file with all the zip codes from germany and corresponding city, lat, long, etc. 

 

What I would like to do is a kind of index match between the two table. Unfortunately I couldn't establish a relationship since there are some zip codes that don't belong to Germany. Therefore the two tables don't speak between each others and it's hard to find a proper function in the query editor.

 

Any ideas?

 

Regards,

AS

3 REPLIES 3
v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

Could you please tell me if your problem was resolved? Could you please share the answer or mark the proper answer as solution if it's convenient for you? That will be a help to the others.

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Employee
Employee

@Anonymous

 

Hi AS,

 

@Greg_Deckler is right. You still can establish a relationship. If you only want to match the codes, there is a function you can try without a relationship. It would be something like this:

 

CodesInGermany =
LOOKUPVALUE ( Germany[CodeGermany], Germany[CodeGermany], 'All'[AllCode] )
CodesInAll =
LOOKUPVALUE ( 'All'[AllCode], 'All'[AllCode], 'Germany'[CodeGermany] )

power bi Index Match between two different sources.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

Can you post some sample data and example of what you are trying to do that you cannot do?

 

Just because there are unmatched values in a relationship shouldn't prevent you from creating a relationship.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.