Value.ReplaceMetadata

 

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.

Replaces the metadata on a value with the new metadata record provided and returns the original value with the new metadata attached.

Value.ReplaceMetadata(value as any, newMeta as record) as any  

ArgumentDescription
valueThe value to modify.
newMetaThe new metadata to replace the old metadata with..
Value.ReplaceMetadata(1 meta [meta = 1], [meta=2]) equals  1 meta [meta = 2]  

Show: