Forum Discussion

power-bi-noob's avatar
3 years ago
Solved

Change the way a table visualization displays date

I have a table visualization that includes a date, which currently displays as mm/dd/yyyy hh:mm:ss. I would only like it to display as mm/dd/yyyy for this particular visualization. I do not want to change the data in the source table as the timestamp portion is useful in other contexts. How can this be done?

14 Replies

  • Hello,

     

    If you want you could dublicate the column and format it mm/dd/yyyy  and use it in the matrix or split  the main column into date alone and time alone.

     

    If I answered your question, please mark my post as solution, Appreciate your Kudos👍

     

    Follow me on Linkedin

    • power-bi-noob's avatar
      power-bi-noob
      Icon for Helper I rankHelper I

      If I duplicate the column, what happens the next time I import the data from the original source which would not include this data?

      • Anonymous's avatar
        Anonymous
        Not applicable

        Once you build the transformation it will work the same way every time you open it.  So unless you're rebuilding your visualization every time you want to open/use it the transformation will remain the same unless and until you modify it.

    • power-bi-noob's avatar
      power-bi-noob
      Icon for Helper I rankHelper I

      I duplicated the column, and changed the column format to date, and it looks fine in the table (mm/dd/yyyy instead of mm/dd/yyyyy hh:mm:ss).

      Now, for some absurd reason, it shows the name of the day in the table visualization, which clearly isn't displayed in the table.

       

      All I want it to show is 12/30/2022. It doesn't seem like it should be this hard.

  • Anonymous's avatar
    Anonymous
    Not applicable

    First, you can look at whichever app is used for the visualization and see if the formatting you want is available within that app.

     

    PowerBI doesn't modify original content.  It reads it in with powerquery and lets you adjust it how you want via transform within PowerBI only.   In transform you can either adjust the original columns (which doesn't adjust the actual data where you're getting it from) OR if you want to play it safe you could just duplicate the column within the transform and format it the way you want in the new column, then use that differently formatted column for your visualization.  

    • power-bi-noob's avatar
      power-bi-noob
      Icon for Helper I rankHelper I

      I am looking to change this field's appearance in this visualization only, I don't want to change it in the model. If I want to make the value the color blue, I can, but if I just want to see the date without the time, that doesn't seem to be an option. You can easily do this in Excel (change the way the date displays without changing the underlying data). It's puzzling that you can't do that in Power BI.

      • Anonymous's avatar
        Anonymous
        Not applicable

        In that case, I have added columns via splitting the original into 2 new columns (leaving the combined original).  Then using whichever column you want/need... in your case it sounds like the date without time column.

         

        If I answered your question, please mark my post as solution, Appreciate your Kudos