Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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?
Solved! Go to Solution.
Hello @power-bi-noob ,
format the date column with the datecolumn tools tab to short date.
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Proud to be a Super User! | |
Or depending on your model you can use a measure:
FORMAT(<value>, <format_string>[, <locale_name>])
https://learn.microsoft.com/en-us/dax/format-function-dax#datetime-with-optional-locale_name
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.
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.
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
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👍
Proud to be a Super User! | |
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.
Hello @power-bi-noob ,
format the date column with the datecolumn tools tab to short date.
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Proud to be a Super User! | |
Idris, do you know a way of updating the date format & data type for all date columns across all tables?
Perfect! I knew it couldn't be that hard, the interface on this program just seems to be very complex. Thanks!
If I duplicate the column, what happens the next time I import the data from the original source which would not include this data?
Hello,
When you refresh the data, your changes will stay and you don't have to remake them again.
If I answered your question please mark my post as a solution, Appreciate your Kudos 👍
Proud to be a Super User! | |
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.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
111 | |
96 | |
90 | |
79 | |
67 |
User | Count |
---|---|
153 | |
125 | |
114 | |
111 | |
95 |