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

The 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.

Reply
SandraPerth
Regular Visitor

Matrix with Date Repeating

Hello

I have a matrix very simple with dates across the top and text list down the side each one with a date 

My date headers are repeating across the top I would like to have it by months and years across top in order.

SandraPerth_0-1724845917153.png

 

2 ACCEPTED SOLUTIONS

Suggesting you to if possible, then share your data  or create a Year , and month column from date in dax or power query. Then combine for yearmonth column and just place it in column section. I hope it will not repeat. Delete the old visual and create a new matrix visual.

Hope this helps!!

View solution in original post

 

  • In the Fields pane, click on the dropdown arrow next to your date column and choose New Column. You will create a new calculated column with the required date format.

  • In the formula bar, use the following DAX expression:

    DAX FormattedDate = FORMAT([YourDateColumn], "MMM yy")
    • Replace [YourDateColumn] with the actual name of your date column.
    • "MMM yy" is the format for displaying the month in abbreviated form (like Nov, Dec) and the year in two digits (like 23 for 2023).
    • Press Enter to create the new formatted date column.

View solution in original post

8 REPLIES 8
shafiz_p
Super User
Super User

Hi @SandraPerth  

I think you are looking column header as like as the given image.

shafiz_p_1-1724846613712.png

 

 

Just place date hirarchy or simply year and month column in column section and drill down to last steps. And you will get your desired result.

Hope this helps!!
If this solved your problem, please accept it as a solution!!

Best Regards,
Shahariar Hafiz



Thank you I worked that out is there a way to show Nov 23 Dec 23 rather than two rows?

 

  • In the Fields pane, click on the dropdown arrow next to your date column and choose New Column. You will create a new calculated column with the required date format.

  • In the formula bar, use the following DAX expression:

    DAX FormattedDate = FORMAT([YourDateColumn], "MMM yy")
    • Replace [YourDateColumn] with the actual name of your date column.
    • "MMM yy" is the format for displaying the month in abbreviated form (like Nov, Dec) and the year in two digits (like 23 for 2023).
    • Press Enter to create the new formatted date column.

SandraPerth
Regular Visitor

I would like it show Oct 23 Nov 23 Dec 23 etc

@SandraPerth  I think you have problem with your date table. In my case it is not repeating. See the image below:

shafiz_p_0-1724846915260.png

 

Yes I agree not sure how to fix it. 

the column is just a list of dates in dd/mm/yyyy format

Suggesting you to if possible, then share your data  or create a Year , and month column from date in dax or power query. Then combine for yearmonth column and just place it in column section. I hope it will not repeat. Delete the old visual and create a new matrix visual.

Hope this helps!!

zenisekd
Super User
Super User

If I understand your requirement correctly,  do you want to have in the top year (once) and below it months? 

This could be solved by instead of inserting one field with year + month, inserting two fields - year and month. 

zenisekd_0-1724846406453.png

 

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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