Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
travbum
Advocate I
Advocate I

Visualization can't remove Time from Date

 

I've split a column in to two parts, "CreatedDate" and "CreatedDate_TimeOnly". When I go to chart the "CreatedDate" it's still giving me times for the data. How do I remove this? 

 

dates and times.png

 

2 ACCEPTED SOLUTIONS
MattAllington
Community Champion
Community Champion

This looks like formatting only. Go to the data view and change the format of the date column to exclude the time format



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @travbum,

 

You should be able to change the data type of "CreatedDate" column to Date type and format it under Modeling tab by first clicking the column within your fields.Smiley Happy

 

ct1.PNG

 

Regards

View solution in original post

18 REPLIES 18
Faiza_Fatima
New Member

I am facing the same issue

imocean
Frequent Visitor

I took an alternative way - in my Line Chart visual I selected Month and Day as hierarchy, then selected 'flatten all level' for the chart. I then got it displayed in month-date in X axis. Users can always drill up to get to monthly trend too. Hope this helps in some way. 

 

image.pngimage.png

 

 
DanielM80
Advocate I
Advocate I

I have the same issue but the format change didnt fix it. Any ideas?

@DanielM80 Did you change the Data Type or just the Format?

both, but i figured it out last night. The x-axis was set to continious not to category... 

Thanks!

THANK YOU FOR POSTING THIS! I was losing my mind over here

thanks you made my day!!!!

Anonymous
Not applicable

Thanks.  Fixed my issue after changing from Continuous to Category.

DanielM80
Advocate I
Advocate I

Same problem but after changing the format the time remains. any ideas?
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @travbum,

 

You should be able to change the data type of "CreatedDate" column to Date type and format it under Modeling tab by first clicking the column within your fields.Smiley Happy

 

ct1.PNG

 

Regards

@v-ljerr-msft  Hi, I have the same problem. The date is formatted as you say but the visual Measure still gives me the time.

 

ScreenHunter_196.jpgScreenHunter_195.jpg

jopint
Microsoft Employee
Microsoft Employee

When the data range is small (say only 2-3 days), the x-axis tries to be smart so it auto adjusts and inserts time as well. This happens even if the date columns is formated as date only. To solve this, consider switching to categorical (but then dates with no data will not be displayed, thus I do not recommend), or set custom start and end values on the axis.

I am having that same issue. Did you ever get this resolved?

Thanks 

MattAllington
Community Champion
Community Champion

This looks like formatting only. Go to the data view and change the format of the date column to exclude the time format



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Changing the data type format from 'DateTime' to 'Date' under the data model view worked.
Thank you!

Anonymous
Not applicable

I've tried everything, changing the type format in formatting, changing the data type and I don't want to change the x-axis to Category. How can I solve this?

If changing the data type/format doesn't resolve the issue - change the x-axis under visual settings from 'Continuous' to 'Categorical'

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.