Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have created visuals with date on the x-axis, due to space I want to shorten the months to Mmm format on the visual (ideally mmm-yy is possible).
I have tried creating a new column that shows this format but when I use it to build the visual it shows the month name in full.
Solved! Go to Solution.
Hi, @harsin
Based on your question, here are my answers.
First create a table including Month and Year columns.
Then use the DAX code to create a New Column.
Column = LEFT('MonYear'[Month],3) &"-" & RIGHT('MonYear'[Year],2)
This will give you the results you want.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @harsin
Based on your question, here are my answers.
First create a table including Month and Year columns.
Then use the DAX code to create a New Column.
Column = LEFT('MonYear'[Month],3) &"-" & RIGHT('MonYear'[Year],2)
This will give you the results you want.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @harsin ,
if you create a calculated column that says
month = format ('YourTableName'[Date],"mmm")
this should return month short like Jan and Feb
Proud to be a Super User! | |
Thanks Idrissshatil, I tried this poreviously and it did not work
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
81 | |
52 | |
39 | |
35 |
User | Count |
---|---|
95 | |
79 | |
52 | |
49 | |
47 |