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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.