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

How to create a Data type table

Hi All, may I know is there any way I can create a table like this(Data type for each column) in PowerQuery?

Column NameData Type
IDWhole number
NameText
CostDecimal number

 

Thanks so much!

1 ACCEPTED SOLUTION
ghoshabhijeet
Solution Supplier
Solution Supplier

@Anonymous  Yes, you can get the Column Name and Datatypes of the column and other informations about the schema using the below M Code.

 

#"Column Names" = Table.Schema("Table Name")

ghoshabhijeet_0-1652953823616.png

 

Once you get all the information, you can then keep whatever is required for your need and rest you can or remove.

 

 

** If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution, so that it comes in top of the search and help others. Thank you !

Good Luck 👍

 

View solution in original post

1 REPLY 1
ghoshabhijeet
Solution Supplier
Solution Supplier

@Anonymous  Yes, you can get the Column Name and Datatypes of the column and other informations about the schema using the below M Code.

 

#"Column Names" = Table.Schema("Table Name")

ghoshabhijeet_0-1652953823616.png

 

Once you get all the information, you can then keep whatever is required for your need and rest you can or remove.

 

 

** If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution, so that it comes in top of the search and help others. Thank you !

Good Luck 👍

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.