Value.As

 

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.

Value.As is the function corresponding to the as operator in the formula language. The expression value as type asserts that the value of a value argument is compatible with type as per the is operator. If it is not compatible, an error is raised.

Value.As(value as any, type as type) as any  

ArgumentDescription
valueThe value as.
typeAsserts that the value of a value argument is compatible with type.
Show: