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

Index match in power query form 2 different files

Hi all

 

I would like to replicate the index match function in power query, however i have a table of data which has the look up value, and the table where i want to look up form is in a different excel file. 

example 

Main table (look up table and results file

 Project ID = SAS_001

 

Finance table 

   Project ID = SAS_001

   SAP_ID1  = ""

   SAP_ID2  = BI.130016 

 

I am wanting the function to return the SAP_ID1 or SAP_ID2 depending which one has a value,  based on the lookup value of the Project ID from the main table. 

 

expected result is BI.130016

 

thank you

 

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

To create a calculated column as below.

 

Column =
CONCATENATE (
    LOOKUPVALUE (
        Table1[Tech SAP Project Number],
        Table1[Project Number], Table2[ID]
    ),
    LOOKUPVALUE (
        Table1[Business SAP Project Number],
        Table1[Project Number], Table2[ID]
    )
)

Capture.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @Anonymous,

 

Could you please share your sample data and excepted result to me, if you don't have confidential data? Please upload your file to One Drive and share the link here.

 

Regards,

Frank

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

hi

 

Base on the Project number I want to pull the date from the last 2 columes of data into to one colume in the main table result in bold

 

Finance file

Project NumberProject NameBusiness SAP Project NumberTech SAP Project Number
CAT_0003Data Migration Specialist Resources _ (CAT)BI.170067 
CAT_0004Migration Management Tool and Services  _ (CAT)BI.170068 
CDO_500Data Management Execution IN.170181
CDO_501Data Foundation - Data Management IN.160212

 

Main table

IDSAP IDProject name
CAT_0003BI.170067Data Migration Specialist Resources _ (CAT)
CAT_0004BI.170068Migration Management Tool and Services  _ (CAT)
CDO_500IN.170181Data Management Execution
CDO_501IN.160212Data Foundation - Data Management

Hi @Anonymous,

 

To create a calculated column as below.

 

Column =
CONCATENATE (
    LOOKUPVALUE (
        Table1[Tech SAP Project Number],
        Table1[Project Number], Table2[ID]
    ),
    LOOKUPVALUE (
        Table1[Business SAP Project Number],
        Table1[Project Number], Table2[ID]
    )
)

Capture.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @Anonymous ,

 

Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

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.