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
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
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.

Top Solution Authors
Top Kudoed Authors