Type.ForRecord
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 a Record type from a fields record.
Type.ForRecord(fields as record, open as logical) as type
| Argument | Description |
|---|---|
| fields | The record to convert. |
| open | A logical value indicating if the returned type should be an open record. |
Type.ForRecord( [ X = [Type = type number, Optional = false], Y = [Type = type number, Optional = true]], true) equals type [ X = number, optional Y = number,... ]
Show: