cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cjohnson2136 Frequent Visitor
Frequent Visitor

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.

caputre4.PNGCapture2.PNGCapture1.PNGCapture3.PNG 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Field is Formatted to Time but Date shows in Visualization

Hi @cjohnson2136 ,

 

Or we can create a calculated column like this to work on it.

 

Column = ""&'Table'[time]

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Nathaniel_C Super Contributor
Super Contributor

Re: Field is Formatted to Time but Date shows in Visualization

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 Frequent Visitor
Frequent Visitor

Re: Field is Formatted to Time but Date shows in Visualization

That didn't do anything for me

Highlighted
cjohnson2136 Frequent Visitor
Frequent Visitor

Re: Field is Formatted to Time but Date shows in Visualization

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

Community Support Team
Community Support Team

Re: Field is Formatted to Time but Date shows in Visualization

Hi @cjohnson2136 ,

 

Or we can create a calculated column like this to work on it.

 

Column = ""&'Table'[time]

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 125 members 1,611 guests
Please welcome our newest community members: