Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
pang22
Helper II
Helper II

show in "MMM" in x-axis

Hi,

 

How to transform the month to show in "MMM" (Jan, Feb) abbreviations and show the corresponding year in the x-axis?

Thanks.

 

pang22_0-1713493595989.pngpang22_1-1713493610293.png

 

2 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@pang22 

you can use FORMAT(date,"mmm")

https://learn.microsoft.com/en-us/dax/format-function-dax?wt.mc_id=DP-MVP-5004616

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Ashish_Mathur
Super User
Super User

Additionally, create a Calendar Table.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Additionally, create a Calendar Table.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ryan_mayu
Super User
Super User

@pang22 

you can use FORMAT(date,"mmm")

https://learn.microsoft.com/en-us/dax/format-function-dax?wt.mc_id=DP-MVP-5004616

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




After create to "MMM" format, how to sort the month in correct order?

pang22_0-1713499393457.png

 

create a number column like 202401, 202402, 202403.

=year(date)*100+month(date)

then sort the month name column by the number column

 

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-deskto...

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.