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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
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!