Forum Discussion
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?
This looks like formatting only. Go to the data view and change the format of the date column to exclude the time format
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.:smileyhappy:
Regards
18 Replies
- v-ljerr-msftMicrosoft 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.:smileyhappy:
Regards
- lawrenceonlineNew Member
Thanks
- gtamirPost Patron
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.
- jopintMicrosoft 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.
- MattAllingtonCommunity Champion
This looks like formatting only. Go to the data view and change the format of the date column to exclude the time format
- AnonymousNot applicable
Changing the data type format from 'DateTime' to 'Date' under the data model view worked.
Thank you!- AnonymousNot 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?
- imoceanFrequent 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.
- DanielM80Advocate ISame problem but after changing the format the time remains. any ideas?
- DanielM80Advocate II have the same issue but the format change didnt fix it. Any ideas?
- AnonymousNot applicable
I am facing the same issue