This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi All,
I am trying to convert yyyy-MM-ddThh:mm:ss to yy-mm-dd. Any help would be appreciated.
Thank you!
Sean
Solved! Go to Solution.
I figured this out. I had to convert at the query level, not at the design level.
What I did was first converting the data to date so for that I created an additional column with the formula "Date = Left(DateTimeColumn,10), then convert the date to whatever format you want in the Column tools, Data Type- Date and Format to the one you want.
If it is detected as date then
new = format([Table]date, "yy-mm-dd")
If it is text then
new = mid([Table]date,3,8)
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
Is there a way to do this without needing to add a new column? I was hoping for a workaround that would allow me to convert to date format.
If I have to resort to coding, I can, but this affects multiple columns across a large number of tables.
Thank you,
I figured this out. I had to convert at the query level, not at the design level.
Sean,
Choose the datatype as date instead of datetime and select the format as yy-mm-dd in Report view.
Refer to the first screenshot and box 3. Choose the datatype and format dropdown.
https://docs.microsoft.com/en-us/power-bi/desktop-data-view
If it helps, mark it as a solution
Kudos are nice too
I am unable to convert to date format. I tried that before posting.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 45 | |
| 28 | |
| 24 | |
| 22 |