Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a date column which I want to convert to MMM-YY format. I used this formula:
Solved! Go to Solution.
HI @meddojeddo ,
You can try this.
YYYY-MON = FORMAT(Table[Date],"YYYY-MM")
else in Power Query create a custom Column
=Number.ToText(Date.Year([Date]))&"-"&Number.ToText(Date.Month([Date]))
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
HI @meddojeddo ,
You can try this.
YYYY-MON = FORMAT(Table[Date],"YYYY-MM")
else in Power Query create a custom Column
=Number.ToText(Date.Year([Date]))&"-"&Number.ToText(Date.Month([Date]))
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
@harshnathani the issue I am having now though is that the created column is a string and sorts alphabetically rather than by date. It does not allow me to sort it by the date column because there is more than one date value for the same month. Is there a way I can have the date in this format without converting it to a string?
Hi @meddojeddo ,
Check if this helps.
https://community.powerbi.com/t5/Desktop/Year-Sort/m-p/1657973#M663431
You will need to create an index column which will enable you to sort the column.
Regards,
Harsh Nathani
Hi @meddojeddo ,
Try creating a column like this:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
78 | |
58 | |
35 | |
32 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |