Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
team good morning,
I have problems with the dates of several sql tables already nourished information which needs to be changed to date format.
they are displayed as follows:
20211125111517346
understanding that it would be the date plus the hour minutes seconds and milliseconds.
Anyone know how to fix it? since from powerbi does not let me change the format because I am in query mode.
would be of great help.
@Syndicate_Admin , if you using direct query my advice would be create a view and bring date and time from the database or write SQL if allowed in connection
Thanks for the reply,
The problem is that I have access to the tables from PowerBI, but I do not have write access, I could see that the field is text, you can see that the date impacts from a Now() (it seems to me) since when impacting it is only text and in the following format with milliseconds:
| 20211125111517346 |
HI @Anonymous,
I'd like to suggest you do these in t-sql query(e.g. left, right function) to extract the date and time part then transfer data types:
LEFT (Transact-SQL) - SQL Server | Microsoft Docs
RIGHT (Transact-SQL) - SQL Server | Microsoft Docs
BTW, the current power bi seems not support the millisecond(power bi data model table time values are ended to the second level), if you want to keep these values, you may need to create a new column to store them.
Regards,
Xiaoxin Sheng
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 39 | |
| 31 | |
| 27 |