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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Test the first Header for specific value

I need to test if the first header of my source file is a specific value. Or how do you get the value of the first header so I can compare it to a specific value

 

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

This works

 

headers = Table.ColumnNames(#"Trimmed Text") as list,
headersContain = List.Contains(headers, "First Name")

View solution in original post

1 REPLY 1
Anonymous
Not applicable

This works

 

headers = Table.ColumnNames(#"Trimmed Text") as list,
headersContain = List.Contains(headers, "First Name")

Helpful resources

Announcements
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.