Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have a handfull of tables with short dates (MM/DD/YYYY) displayed. I need to be able to connect and filter them by just month and year (MM/YYYY). I've tried a few solutiuons and keep running into the problem of only getting the month and year as (Month spelled out, YYYY) or (MMYYYY) and unable to format it as a date correctly.
I feel like this shouldnt be as hard as I've made it somehow. Any help is appreciated,
Thank you!
Solved! Go to Solution.
There are several straightforward ways to extract and display month/year in MM/YYYY format from a date column. Here are the best solutions:
MonthYear = FORMAT([YourDateColumn], "MM/YYYY")
In Power Query Editor, select your date column
Go to "Add Column" > "Date" > "Month" > "Year"
Create a custom column with:
= Text.PadStart(Text.From([Month]), 2, "0") & "/" & Text.From([Year])
Create a date table with all dates in your range
Add columns:
MonthYear = FORMAT([Date], "MM/YYYY") MonthYearSort = YEAR([Date]) * 100 + MONTH([Date]) // For proper sorting
There are several straightforward ways to extract and display month/year in MM/YYYY format from a date column. Here are the best solutions:
MonthYear = FORMAT([YourDateColumn], "MM/YYYY")
In Power Query Editor, select your date column
Go to "Add Column" > "Date" > "Month" > "Year"
Create a custom column with:
= Text.PadStart(Text.From([Month]), 2, "0") & "/" & Text.From([Year])
Create a date table with all dates in your range
Add columns:
MonthYear = FORMAT([Date], "MM/YYYY") MonthYearSort = YEAR([Date]) * 100 + MONTH([Date]) // For proper sorting