Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi all,
Is it possible to write a query that extracts all column names and datatype for a table in Power BI?
Desired output is a table with two columns, columnname and datatype.
Solved! Go to Solution.
Yes. Please see the Table.Schema function.
Table.Schema - PowerQuery M | Microsoft Learn
Pat
Is it possible to get it for all the tables at the same time?
Yes. Please see the Table.Schema function.
Table.Schema - PowerQuery M | Microsoft Learn
Pat