Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I want to convert a datetime field into MMM-YYYY format, which looks to work when using:
| Completion-Time | YearMonth |
| 15/07/2020 15:16:16 | July 2020 |
| 20/08/2020 17:16:08 | August 2020 |
Hi @ryanb11 ,
According to my understanding, you want to format datetime with “Month-Year” , right?
For my test,once Format() is used, the type of the data will become String, so just make sure the data type is Text like this:
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.
Best Regards,
Eyelyn Qin
@ryanb11 ,
I doubt this column can come has date-time, unless data type is changed.
YearMonth = FORMAT('Journey'[Completion-Time], "MMM-YYYY")
Sorting can be an issue , you can sort on the column
YearMonth Sort= FORMAT('Journey'[Completion-Time], "YYYYMM")
https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
Create a new calculated column in report view and use the following formula:
I tried that but it didnt work, the dates in the visual are still showing as datetime
any other ideas? @Anonymous
HI @ryanb11
Consider converting the column to date before using the below formula.
FORMAT(table[date],"MMM-YYYY")
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 49 | |
| 42 |