Forum Discussion
joelv67
9 years agoFrequent Visitor
List.First(List.Select()) comparing column table to containing table
background: I have in my main table a CreateDate. I have created a column of data from the main table, for each row, it contains 1 or more records. I am trying to grab the First Date from the newtab...
- 9 years ago
sorry, there was an Earlier missing:
= Table.AddColumn(#"Added Custom3", "StartDate2", (Earlier) => List.First( List.Select(Earlier[NewTable][CreateDate], each _ < Earlier[CreateDate] )))
ImkeF
9 years agoCommunity Champion
Pls try:
= Table.AddColumn(#"Added Custom3", "StartDate2", (Earlier) => List.First( List.Select([NewTable][CreateDate], each _ < Earlier[CreateDate] )))
joelv67
9 years agoFrequent Visitor
Thank you for the quick response. I am now getting this error:
Expression.Error: There is an unknown identifier. Did you use the [field] shorthand for a _[field] outside of an 'each' expression?