Number.FromText
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 number value from a text value.
Number.FromText(text as nullable text, optional culture as nullable text) as nullable number
| Argument | Description |
|---|---|
| text | Text value to convert to a number. If text does not represent a valid number, Expression.Error is thrown. |
| optional culture | A text value corresponding to the culture values supported on your version of Windows, such as "en-US". If the culture is not specified, the current user culture is used. For a list of culture names, see National Language Support (NLS) API Reference. |
Number.FromText("1") equals 1
Number.FromText("a") equals error
Show: