cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User IX
Super User IX

Re: power bi "Index Match" between two different sources

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!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Microsoft
Microsoft

Re: power bi "Index Match" between two different sources

@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.
Highlighted
Microsoft
Microsoft

Re: power bi "Index Match" between two different sources

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.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors