Forum Discussion

cjohnson2136's avatar
cjohnson2136
New Member
7 years ago
Solved

Field is Formatted to Time but Date shows in Visualization

I am having problems formatting my time field on the visualization. The field has a data type of Time and Format h:mm tt. If you look at the pictures below you will see how it is formatted under the modeling tab and how it appears in the table. But when you filter you will notice it has the date of 12/30/1899 and that same date shows on my graph. When the data was imported into Power BI from a CSV it was just the time there was no date. I can't figure out how that date is showing or what I can do to get rid of it.

 

4 Replies

  • Nathaniel_C's avatar
    Nathaniel_C
    Community Champion

    Hi cjohnson2136 ,

     

    Not sure if this will solve the issue, but I changed a table from date to time, and then looked at a measure that I had written, and it was still date. Unchecked the measure from the visual, and rechecked it. It then worked correctly as a time.

     

    Nathaniel_C

      • cjohnson2136's avatar
        cjohnson2136
        New Member

        Weird I added the Hour field to the Axis and that madethe Legend change to show just the time