cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
singhv2
Helper I
Helper I

Search Values from a List(Query 1), in a Text string(Query 2A), and return those Values(Query 2B)

 

Column/List A - Query1:

 

Key Information.1

ACCOUNTNBR:
APPNAME:
ANNVOLUME:
ASTM:
BILLTYPE:
CICONTACT:
CIPN:
COMPONENT:
CORE DIA:
DELIVERY:
DEPT:
DEST:
DIA:
DIMENSIONS:
DRWNUM:
ECT:
ENDUSE:
EQUIPMENT:
FEETYPE:
FLANGE DIA:
FORM:
GRADE:
HANDLE:
HAZMAT:
HEIGHT:
HIMETAL:
ITEM:
JOB TITLE:
LENGTH:
LOCATION:
MATERIAL:
METERNBRS:
MFGPN:
MFRNAME:
MILESTONE:
MODEL:
ORIGIN:
OTHERINFO:
PACKFACTOR:
PACKTYPE:
PAYTERM:
PERFORATION:
PRIMARY NAME:
PRINTING:
PROBLEM:
PROCESS:
QUOTE:
RAM:
REQUESTOR:
SERIALNUM:
SERVICEFREQ:
SERVICELOC:
SIZE:
SOW:
SPEC:
SPECIAL FEATURES:
SUBCAT:
SUPCONTACT:
TASK:
TERM:
THKS:
TYPE:
UNIT:
UNITCOST:
UOM:
VERSION:
WIDTH:

 

Column/List B - From Query 2 (It's a long list, I am sharing just 2 for example: 

 

PO Line Description
CONVERGINT,TYPE:Embedded Technical Resource - Chris Cordes,SOW:System Administration,JOB TITLE:System Administration,BILLTYPE:Monthly,FEETYPE:Fixed Fee,CICONTACT:Mike Jackson,TERM:1 year,SERVICELOC:SP-ZV-02,OTHERINFO:6/16/17-6/16/18 - RBC1030048P
CONSULTING (PROJECT MANAGER AND MASTER DATA ARCHITECT),TYPE:Corning Global Template Design,SOW:In Place ,FEETYPE:Hourly Rate,CICONTACT:Karin Stroh,TERM:Feb 12, 2018 - May 4, 2018

 


List A Contains the Key information, out of which 3 or more should be available within each decription in List B.

 

I just want to have the results, in a way that, query looks for each value of List A, in list B, and if present then return in in a new column.

 

Our Results should look like below. (I've used some of the methods, however none of them are effective. Your Previous solution looks good, however, it's returning only one of the valus. I'll really appreciate your support.

PO Line DescriptionKey Information Used (Result)
CONVERGINT,TYPE:Embedded Technical Resource - Chris Cordes,SOW:System Administration,JOB TITLE:System Administration,BILLTYPE:Monthly,FEETYPE:Fixed Fee,CICONTACT:Mike Jackson,TERM:1 year,SERVICELOC:SP-ZV-02,OTHERINFO:6/16/17-6/16/18 - RBC1030048PType:, SOW:, JOB TITLE:, BILLTYPE:, FEETYPE:, CICONTACT:, TERM:, SERVICELOC:, OTHERINFO:
CONSULTING (PROJECT MANAGER AND MASTER DATA ARCHITECT),TYPE:Corning Global Template Design,SOW:In Place ,FEETYPE:Hourly Rate,CICONTACT:Karin Stroh,TERM:Feb 12, 2018 - May 4, 2018Type:, SOW:, JOB TITLE:, FEETYPE:, CICONTACT:, TERM:
1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @singhv2,

 

You can write a calculated column on table 2 to check all keys and combine matched items.

 

Result = 
CONCATENATEX (
    FILTER (
        ALL ( 'Key Information' ),
        SEARCH ( [Key], [PO Line Description], 1, -1 ) > 0
    ),
    [Key],
    ","
)

1.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @singhv2,

 

You can write a calculated column on table 2 to check all keys and combine matched items.

 

Result = 
CONCATENATEX (
    FILTER (
        ALL ( 'Key Information' ),
        SEARCH ( [Key], [PO Line Description], 1, -1 ) > 0
    ),
    [Key],
    ","
)

1.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors