DAX Date & Time - TIMEVALUE function


Advertisements

Description

Converts time in text format to time in datetime format.

Syntax

TIMEVALUE (<time_text>) 

Parameters

Sr.No. Parameter & Description
1

time_text

A text string that represents a certain time of the day.

Any date information included in the time_text parameter is ignored.

Return Value

A date in datetime format.

Remarks

When the time_text parameter is a text representation of the date and time, DAX TIMEVALUE function uses the locale and date/time settings of the client computer to understand the text value in order to perform the conversion. Most locales use the colon (:) as the time separator, and any input text using colons as time separators will parse correctly.

Review your locale settings to understand your results.

Example

= TIMEVALUE ("14:45:35") returns 12/30/1899 2:45:35 PM. 
= TIMEVALUE ("2:35:55") returns 12/30/1899 2:35:55 AM.  
dax_functions_date_time.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