Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

DAX function HH:MM:SS to Decimal Format

Hi all!   I have this the folllowing time format in DAX (I do not have access to this column in Power BI Editor Query as I buit it in DAX).   I need a DAX function to add a column with this time ...
  • edhans's avatar
    7 years ago

    Use the FORMAT function to change data types. See this for the various formats you can use.

     

    = FORMAT(Table1[Test],"General Number")

     

    Note it will take AM/PM into account. So 3:32pm would be 0.647222 and 3:32am would be .147222