Forum Discussion
smpa01
Community Champion
1 year agoEnsuring typesafe
how can I ensure, the function execution result returns same type as mentioned in the function?
let
test_type = () as text=> "Hello",
tbl = #table(type table [Name = text, Score = numb...
- 1 year ago
How about this?
= Table.AddColumn(tbl, "Custom", each test_type(), Value.Type(test_type()))
nathancwatkins
Helper II
1 year agoWhy not first define the records, then build your #table by referring to the records and the the function, and assign the text type in the #table function itself?
--Nate