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

Extracting a word with a wildcard from all the queries and create distinct list

Hi Experts,

My source input: PDF, with images and tables, When I load, it is creating query for each page based on my selection. 

As Images have details of each table (Unfortunately cannot get them) I want to extract table names not associated with any record

Say "ID_Area_CD_*" * is a wild card and I need to pull all such information in each query to form a unique and distinct list. 

Please can you help. Thanks a lot

1 ACCEPTED SOLUTION

It's not completely clear to me what you are ultimately trying to achieve but maybe this will work as a custom column:

 

if Text.StartsWith([Column1], "ID_Area_CD_")
then Text.AfterDelimiter([Column1], "ID_Area_CD_")
else null

 

View solution in original post

4 REPLIES 4
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

@AlexisOlson 's solution looks good. Does it solve this problem?

 

Best Regards,
Community Support Team _ Jing

Anonymous
Not applicable

Thank you @AlexisOlson  I tried after your advise, I get a condition "False" and "True" and when I use Text.AfterDelimiter I get the string but some garbage from other columns. I tried to combine this with IF

IF( Text.StartsWith([Column1], "ID_Area_CD_") then Text.AfterDelimiter([Column1],"_") ? I am trying but getting syntax error.

 

It's not completely clear to me what you are ultimately trying to achieve but maybe this will work as a custom column:

 

if Text.StartsWith([Column1], "ID_Area_CD_")
then Text.AfterDelimiter([Column1], "ID_Area_CD_")
else null

 

AlexisOlson
Super User
Super User

Have you tried using a condition like Text.StartsWith([ColumnName], "ID_Area_CD_")?

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