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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Anonymous
Not applicable

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.