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
Hello Community,
I am new to PowerBI and currently, I am trying to create a new table using DAX query to extract only one field (Date/Time) into the table. Then I want to create new columns for month and year (based on the date/time field).
Is there a simple solution to this ?
Thank you.
Regards,
Solved! Go to Solution.
@Omar_204 somthing like:
Table =
ADDCOLUMNS(
SELECTCOLUMNS(
SourceTable,
"Date", SourceTable[YourDateTime Column]
),
"Month", MONTH([Date]),
"Month Name", FORMAT([Date], "mmmm"),
"Year", Year([Date])
)
Thanks @SpartaBI .
This created a new table with exactly what I was looking for, except the month is showing as a number.
How can I make this the Month name ?
@Omar_204 I added it in the original repsonse now.
Please don't forget to mark that as a solution and appreciate your kudos 🙂
@Omar_204 somthing like:
Table =
ADDCOLUMNS(
SELECTCOLUMNS(
SourceTable,
"Date", SourceTable[YourDateTime Column]
),
"Month", MONTH([Date]),
"Month Name", FORMAT([Date], "mmmm"),
"Year", Year([Date])
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |