March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I'm just starting wiht PowerBI desktop.
My request :
-I have an excel file including a Date
-I load it in PBI GOOD.
-I want to create a field 'month date'
I'm triing infor shared on https://community.powerbi.com/t5/Desktop/Transform-date-to-MM-YYYY/m-p/205311#M90409
but it failed each time : FORMAT function unknown.
additionnal info : my power BI is in French, I cannot find a way to change to english. could be the issue.
Solved! Go to Solution.
Hi @Anonymous,
One more thing you should be noticed that, when you use FORMAT() function to transform the date. It will be a text type value not a date any more.
So if you still want to keep it as date. You can try the build in "MMMM yyyy" date format. Choose your date column, go to Modeling and you can find this date format at Format option.
Thanks,
Xi Jin.
Hi @Anonymous,
One more thing you should be noticed that, when you use FORMAT() function to transform the date. It will be a text type value not a date any more.
So if you still want to keep it as date. You can try the build in "MMMM yyyy" date format. Choose your date column, go to Modeling and you can find this date format at Format option.
Thanks,
Xi Jin.
The link you shared is for PowerQuery not PowerBI.
Dax should be: =FORMAT(DateColumn;"YYYY-MM")
Best regards.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |