Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.