Forum Discussion

addd123's avatar
addd123
Frequent Visitor
8 years ago
Solved

Line chart using hours minutes seconds (timeline)

Hi,    I would like to create a timeline using  the hours minutes seconds from the DATETIME datatype. Unfornunatly the most detailed the graph will go is Days...    How can i use the hours minute...
  • v-xjiin-msft's avatar
    8 years ago

    addd123

     

    In your scenario, did you mean that you want the Datetime data type data to only display the times and use these times as Y Axis in line chart?

     

    If so, as I know current Power BI does not support times as Y Axis values.

     

    And if you mean you just want to use times as X Axis values. Then you can try following method to format your datetime data to time:

     

    Go to Data pane, choose your datetime column => Go to Modeling and you’ll see there’s Data Type and Format. Change it to Time and select the format you want.

     

    If you want to get the separated Hours, Minutes or Seconds one by one. Then I would suggest you to create calculated column with DAX functions:

     

    https://msdn.microsoft.com/en-us/library/ee634786.aspx?f=255&MSPPError=-2147217396

     

    Thanks,
    Xi Jin.