How to get type for specified ColumnName in Table?
Example: How to get type text
for column FirstName
:
Table code:
= Table.FromRows(
{
{1, "Bob", "Smith", "123-4567"},
{2, "Jim", "Brown", "987-6543"},
{3, "Paul", "Wick", "543-7890"}
},
{"CustomerID", "FirstName", "LastName", "Phone"}
)
P.S. Solution as function strongly appreciated! :)
Related Topics:
Use combination of Type.TableColumn and Value.Type functions:
Type.TableColumn(Value.Type(TableName),ColumnName)