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

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

Reply
Trabka
Frequent Visitor

Search column name headers by name (like)

Hi there, I am searching advice how can I find column name by the header where I know the header partially.

 

For example:

 

I have one column header called "Calculation XXX Jan", and on some point in time later there will be new column added "Calculation XXX Feb" and so on.... there can be a lot other tables with different names added in between so they are not next to each other or even the last one.

 

How can I find that last column name knowing that only "Calculation XXX" is common header name string ? Sorry if this is obvious but couldn't find the answer also unpivot didn't work for me. Thanks

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

Use this to find last column names starting with "Calculation XXX"

= List.Last(List.Select(Table.ColumnNames(Source),(x)=>Text.StartsWith(x,"Calculation XXX")))

 

View solution in original post

2 REPLIES 2
Trabka
Frequent Visitor

Thanks @Vijay_A_Verma ! Works for me. 

Vijay_A_Verma
Super User
Super User

Use this to find last column names starting with "Calculation XXX"

= List.Last(List.Select(Table.ColumnNames(Source),(x)=>Text.StartsWith(x,"Calculation XXX")))

 

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.

Top Kudoed Authors