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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
charleshale
Continued Contributor
Continued Contributor

Glitch in the Matrix Report on Date Sorting -- likely Bug

I think there's a bug in the Matrix visual where sorting by date disappears in the sort options of the Column.   Check this out:.

 

1. If I show any date element in Column (such as Year or a date hierarchy), I have no option to sort by it.  Example below.   This matrix visual should show Year as a sort option.    Note - dax date table code provided at bottom.   

charleshale_0-1688434669739.png

 

2. However, if I move that same field to Row in the Matrix visual, I can then sort by it.

charleshale_1-1688434730667.png

 

 

So - the clear work around is to move the date to the Row, sort there, and then move it back to column.   But this seems pretty clearly to be a bug.

 

My Date Table DAX is below

 

DimDate = 
VAR MINYEAR =   2014  
VAR MAXYEAR =   2025
RETURN
ADDCOLUMNS (
    FILTER (
        CALENDAR(DATE(MINYEAR,1,1),DATE(MAXYEAR,12,31)),
        AND ( YEAR ( [DATE] ) >= MINYEAR, YEAR ( [DATE] ) <= MAXYEAR )
    ),
"DateAsInteger", FORMAT ( [Date], "YYYYMMDD" ),
"Year", YEAR ( [Date] ),
"Monthnumber", FORMAT ( [Date], "MM" ),
"HalfYear", YEAR([Date])&" H"&ROUNDUP(MONTH([Date])/6,0),
"YearMonthnumber", FORMAT ( [Date], "YYYY/MM" ),
"YearMonthShort", FORMAT ( [Date], "YYYY/mmm" ),
"MonthNameShort", FORMAT ( [Date], "mmm" ),
"MonthNameLong", FORMAT ( [Date], "mmmm" ),
-- as text "DayOfMonth", FORMAT ( [Date], "d" ),
"DayOfMonth", DAY ( [Date]), 
"DayOfWeekNumber", WEEKDAY ( [Date] ),
"DayOfWeek", FORMAT ( [Date], "dddd" ),
"DayOfWeekShort", FORMAT ( [Date], "ddd" ),
"DayNumber", FORMAT ( [Date], "d" ),
"Quarter", FORMAT ( [Date], "Q" ),
"YearQuarter", FORMAT ( [Date], "YYYY" ) & "/Q" & FORMAT ( [Date], "Q" ))

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @charleshale ,

This is by design. If you want to sort the Column field, you can refer the following links to achieve it by using the feature Sort by column.

Solved: Sorting rows and columns in matrix visual - Microsoft Fabric Community

Solved: Re: Sorting Columns in Matrix Visual - Microsoft Fabric Community

Sort a Column with a Custom Order in Power BI

1. Create a customized sort order dimension table

Effet Order
INDICE 1 1
OLD 2
ITM 3
CONCU 4
QTE 5
NEW 6
INDICE 2 7

2. Combining the Sort Order Table with 'Dimension' table

vyiruanmsft_0-1688627935034.png

3. Sort by column

vyiruanmsft_1-1688627935366.png

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @charleshale ,

This is by design. If you want to sort the Column field, you can refer the following links to achieve it by using the feature Sort by column.

Solved: Sorting rows and columns in matrix visual - Microsoft Fabric Community

Solved: Re: Sorting Columns in Matrix Visual - Microsoft Fabric Community

Sort a Column with a Custom Order in Power BI

1. Create a customized sort order dimension table

Effet Order
INDICE 1 1
OLD 2
ITM 3
CONCU 4
QTE 5
NEW 6
INDICE 2 7

2. Combining the Sort Order Table with 'Dimension' table

vyiruanmsft_0-1688627935034.png

3. Sort by column

vyiruanmsft_1-1688627935366.png

Best Regards

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors