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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
durgaraop21
Helper II
Helper II

I need to display the month name with a total of 11 characters

Could you please any one help me on this.

I need to display the month name with a total of 11 letters, filling the remaining space with blank spaces in the Matrix visual.

 

Screenshot:

durgaraop21_0-1731951671113.png



Expected output:
WithOut manually dragging. 

durgaraop21_0-1731952168738.png

 

 

4 REPLIES 4
v-xingshen-msft
Community Support
Community Support

Hi @durgaraop21 ,
It's been a while since I heard back from you and I wanted to follow up. Have you had a chance to try the solutions that have been offered? If the issue has been resolved, can you mark the post as resolved? If you're still experiencing challenges, please feel free to let us know and we'll be happy to continue to help!
Looking forward to your reply!

Bibiano_Geraldo
Super User
Super User

Hi, @durgaraop21 
Add a new calculated column to your date table with the following DAX formula:

FormattedMonth = FORMAT('YourTable'[Date], "MMMM") & REPT(" ", 11 - LEN(FORMAT('YourTable'[Date], "MMMM")))

Replace the original month column in your Matrix visual with this new calculated column.
This formula formats the month name and appends the necessary number of spaces to make the total length 11 characters.

I hope this helps! 
If you found this answer helpful:
✔️ Mark it as the solution to help others find it faster.
 Give it a like to show your appreciation!

Thank you for contributing to our amazing Power BI community! 
rajendraongole1
Super User
Super User

Hi @durgaraop21 - Create a New Column for the Padded Month Name: Use the DAX FORMAT function along with REPT to pad the month name to exactly 11 characters. Add this calculated column to your Date table or relevant table with month names.

 

 

rajendraongole1_0-1731952628815.png

Padded Month Name = FORMAT('DateTable_t'[Month], "MMMM") & REPT(" ", 11 - LEN(FORMAT('DateTable_t'[Month], "MMMM")))




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

Proud to be a Super User!





@rajendraongole1 Thanks for your reply....
This one is not working as expected.

durgaraop21_0-1731995611192.png

 

Requirement:

When I drag this new column, the visual is not allocating the required space. The requirement is for it to take up 11 characters (including the month name and any remaining empty spaces) within the visual.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.