DAX Text - VALUE function


Advertisements

Description

Converts a text string that represents a number to a number in numeric data type.

Syntax

VALUE (<text>) 

Parameters

Sr.No. Parameter & Description
1

text

The text to be converted.

Return Value

A number.

Remarks

The text parameter for the DAX VALUE function can be a constant, a number, a date, or a time in DAX data types.

If the text is not in one of these following formats, DAX VALUE function returns an error.

  • If the text represents an integer, the integer is returned.

  • If the text represents a decimal number with only zero values to the right of the decimal point, then the integer part only is returned.

  • If the text represents a decimal number, then the decimal number is returned.

Example

= VALUE ("5") returns 5. 
= VALUE ("5.0") returns 5. 
= VALUE ("5.1") returns 5.1. 
dax_functions_text.htm

Useful Video Courses


Video

Mastering DAX and Data Models in Power BI Desktop

53 Lectures 5.5 hours

Abhay Gadiya

Video

Mastering DAX Studio

Featured

24 Lectures 2 hours

Randy Minder

Video

DAX / Power BI - Customer and Sales Analysis Deep Dive

26 Lectures 4.5 hours

Randy Minder

Advertisements