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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All, may I know is there any way I can create a table like this(Data type for each column) in PowerQuery?
| Column Name | Data Type |
| ID | Whole number |
| Name | Text |
| Cost | Decimal number |
Thanks so much!
Solved! Go to Solution.
@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")
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 👍 |
@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")
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 👍 |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |