Forum Discussion

travbum's avatar
travbum
Advocate I
9 years ago
Solved

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-msft's avatar
    v-ljerr-msft
    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.:smileyhappy:

     

     

    Regards

    • gtamir's avatar
      gtamir
      Post 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.

       

      • jopint's avatar
        jopint
        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.

  • MattAllington's avatar
    MattAllington
    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

    • Anonymous's avatar
      Anonymous
      Not applicable

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

      • Anonymous's avatar
        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?

  • imocean's avatar
    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. 

     

     

     
  • Same problem but after changing the format the time remains. any ideas?
  • I have the same issue but the format change didnt fix it. Any ideas?
    • Anonymous's avatar
      Anonymous
      Not applicable

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

      • DanielM80's avatar
        DanielM80
        Advocate I

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

        Thanks!

  • Anonymous's avatar
    Anonymous
    Not applicable

    I am facing the same issue