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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to extract column names from a table

Hi All

 

I have imported a SQL Server table. I want to get the column names of that table. Have gone thru the below link and tried the solution specified. The solution lists the table name and column names, but the values are not persistent. Cannot use that in report.

 

https://community.powerbi.com/t5/Power-Query/Getting-a-list-of-all-columns-in-all-tables-in-the-data...

 

Looking for something like this:

 

Table NameColumn Name
Table1Column1
Table1Column2
Table1Column3

 

1 ACCEPTED SOLUTION
VijayP
Super User
Super User

@Anonymous 

In each Table you need to 

1. Demote the Header as First Row

2. Transpose

3. do this all tables

4. append all tables and remove unnecessary columns

you will get the result. Hope this helps you

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

2 REPLIES 2
VijayP
Super User
Super User

@Anonymous 

In each Table you need to 

1. Demote the Header as First Row

2. Transpose

3. do this all tables

4. append all tables and remove unnecessary columns

you will get the result. Hope this helps you

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

Thank you @VijayP . That is a good work around, even though have to do this for each of the tables. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.