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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Extract data from tab based on similar name

Hello,

 

I am wondering if this is something possible to do.

I receive 30 files per month with two tabs (ie A-aa and B-bb). I need to extract data from tab A-aa. However, some people name it as A-aa, others as A-AA, etc. I am wondering if it is possible to specify the name of the tab so that instead of having Source{[Name="A-aa"]}[Data], I can have Name similar to "aa", for instance.

1 ACCEPTED SOLUTION
Nolock
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

you can get all column names of a table and filter out only those which are similar to your pattern.

You will need following functions:

And then you'll get a new list of column names which you use for selecting columns of your table.

View solution in original post

2 REPLIES 2
luisrh
Responsive Resident
Responsive Resident

I would instead iterate thru the files in the folder and load them in that way ...   

Here is a blog that helps illustrate the approach -  

 

https://radacad.com/loop-through-on-premises-files-with-power-bi-and-schedule-it-to-refresh-automati...

 

Good luck.

 

If this works for you please mark it as a solution.   Thank you.

 

 

Nolock
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

you can get all column names of a table and filter out only those which are similar to your pattern.

You will need following functions:

And then you'll get a new list of column names which you use for selecting columns of your table.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.