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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous00729
Frequent Visitor

How do I sort my column headers in Power BI matrix visual to start on Monday?

Hi all,

 

I've been trying to wrap my head around this... I have a Power BI matrix visual where I want to show Day Name has column headers, Hour by rows and Total Revenue by values. However, trying to re-arange the Day Name to start on Monday seems a little mind-boggling. Here's the DAX code I've been using:

 

Anonymous00729_0-1750078948368.png

 

But, my matrix looks like this...

Anonymous00729_1-1750079058987.png

I want my column headers to be arranged so that it starts from Monday. Please help.

Thank you.

1 ACCEPTED SOLUTION
grognard
Helper I
Helper I

To sort Matrix visualizations (and slicers) we need to use the "Sort by column” feature to sort our original (display) column, by another (index) column. Modify your table to include an index column like this: 
 

Date = ADDCOLUMNS(
    CALENDAR(DATE(2023,1,1),DATE(2023,12,31)),
    "Year",YEAR([Date]),
    "QuarterNr",QUARTER([Date]),
    "Quarter",FORMAT([Date],"\QQ"),
    "MonthNr",MONTH([Date]),
    "Month",FORMAT([Date],"MM"),
    "DayNr",WEEKDAY([Date],2),
    "Day",FORMAT([Date],"DDDD"),
    "DayIndex",IF(FORMAT([Date],"w")="1","7",FORMAT(WEEKDAY([Date])-1,"####"))
)

 

Then selecting the “Day” column, going to “Column tools” in the ribbon, and selecting the “Sort by column” button, then under that menu selecing “DayIndex”/whatever column you want to sort the display column by.  

 

grognard_2-1750093388424.png

 

 

Hope this helps. 

View solution in original post

2 REPLIES 2
grognard
Helper I
Helper I

To sort Matrix visualizations (and slicers) we need to use the "Sort by column” feature to sort our original (display) column, by another (index) column. Modify your table to include an index column like this: 
 

Date = ADDCOLUMNS(
    CALENDAR(DATE(2023,1,1),DATE(2023,12,31)),
    "Year",YEAR([Date]),
    "QuarterNr",QUARTER([Date]),
    "Quarter",FORMAT([Date],"\QQ"),
    "MonthNr",MONTH([Date]),
    "Month",FORMAT([Date],"MM"),
    "DayNr",WEEKDAY([Date],2),
    "Day",FORMAT([Date],"DDDD"),
    "DayIndex",IF(FORMAT([Date],"w")="1","7",FORMAT(WEEKDAY([Date])-1,"####"))
)

 

Then selecting the “Day” column, going to “Column tools” in the ribbon, and selecting the “Sort by column” button, then under that menu selecing “DayIndex”/whatever column you want to sort the display column by.  

 

grognard_2-1750093388424.png

 

 

Hope this helps. 

Thank you so much @grognard , your solution was exactly what I needed. Much appreciated!!! 😁🙏

Anonymous00729_0-1750096966882.png

 

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.