Forum Discussion

jwelch176's avatar
jwelch176
Frequent Visitor
6 years ago
Solved

Power BI Excel Index Match help needed

New user here.  I have two tables in my Power BI Report.  Table 1 is a contact list with addresses.

NameAddress1Address2CityStateZip
Tom Jones123 Sesame St BeavertonOR97003

 

Table 2 has zip codes and their driving distances to four different locations.  

Zip CodeAlice's houseBarbara's houseCharlie's houseDerrick's HouseClosest Location -  DistanceClosest Location -  Name
9700217.7713.35224.65926.04813.352Barbara's house
970036.51711.8279.33618.6886.517Alice's house
9700430.6126.19239.90419.73819.738Derrick's House
970055.1448.76811.18314.2365.144Alice's house
970067.29712.1710.75517.8727.297Alice's house
970077.03311.897.17921.1387.033Alice's house
9700806.32812.70517.4350Alice's house

 

I need to add a column to the address list that will look at the contact's zip code; do an index match function; and then bring back the data in the Closest Location -  Name field.

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi jwelch176 ,

     

    In Query Editor, select Zip Code, Closest Location - Distance, Closest Location - Name and use unpivot other columns feature.

    Result:

    Then use merge query feature.

    Expand the table and remove duplicate.

     

    Best Regards,

    Jay

     

3 Replies