Power Query M code
let
Source = YourTable,
AddedTypeCheck = Table.AddColumn(Source, "ColumnType", each Value.Type([ColumnName]), type type)
in
AddedTypeCheck
Inspects the actual type of a value or column, useful for debugging unexpected type errors.
let
Source = YourTable,
AddedTypeCheck = Table.AddColumn(Source, "ColumnType", each Value.Type([ColumnName]), type type)
in
AddedTypeCheck
Remove this helper column once you've confirmed the type - it's a debugging step, not something to ship in a production query.
Browse all 145 snippets in the Power Query M Code Snippets, or search the library for something similar to Check a Value's Data Type at Runtime.