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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.