List.Single

 

This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.

Returns the single item of the list or throws an Expression.Error if the list has more than one item.

List.Single(list as list) as any  

ArgumentDescription
listThe List to check.
List.Single({1}) equals 1  

List.Single({1, 2, 3}) equals error  

Show: