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.
Hi
I have a field that contains dates and want to just take out the month so I can plot a series of data points against that single month value instead of a range of date. Is there a function/measure/dax that will look at the date and return just the month value from it?
THanks!
Paul
Solved! Go to Solution.
Hi @Anonymous ,
Try:
MONTH([date])
This will give you the month NUMBER (e.g. Jan = 1, Feb = 2 etc.).
If you want this to be more user-friendly, you could add a SWITCH(), something like this:
MyMonth =
SWITCH(
TRUE(),
MONTH([date]) = 1, "Jan",
MONTH([date]) = 2, "Feb"... etc.
Good luck
Proud to be a Datanaut!
Hi @Anonymous ,
Try:
MONTH([date])
This will give you the month NUMBER (e.g. Jan = 1, Feb = 2 etc.).
If you want this to be more user-friendly, you could add a SWITCH(), something like this:
MyMonth =
SWITCH(
TRUE(),
MONTH([date]) = 1, "Jan",
MONTH([date]) = 2, "Feb"... etc.
Good luck
Proud to be a Datanaut!
Ah, yes. Do what @az38 said. Way tidier.
@Anonymous
Proud to be a Datanaut!
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
15 | |
7 | |
6 |