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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Resident Rockstar
Resident Rockstar

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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