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 date column now i want to extract month and year from date column .. how i do this
i want to do this in table ..
this automated date hierachy is created but not visible in table
Solved! Go to Solution.
Hi @Anonymous , on the table with your date field you can create the following:
Year = YEAR(datefield)
Month = MONTH(datefield) this returns a number from 1-12
MonthName = FORMAT(datefield, "MMM")
If this answer solves your problem please mark it as a solution!
Hi @Anonymous ,
You can use FORMAT function in DAX which works similarly as text in Excel.
So for month name, you can create a calculated column with
Month Name =
FORMAT ( Table'[Date], "mmmm" )
For year
YEAR =
FORMAT ( Table'[Date], "yyyy" )
or
Year =
YEAR('Table'[Date])
Hi @Anonymous , on the table with your date field you can create the following:
Year = YEAR(datefield)
Month = MONTH(datefield) this returns a number from 1-12
MonthName = FORMAT(datefield, "MMM")
If this answer solves your problem please mark it as a solution!
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!