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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Mike91
Helper I
Helper I

Sorting Matrix without adding the row

Hi All,

 

i need help to create a matrix, like this but i want order the matrix by the release date of item, i tried with sorting by release date in table but more items was released in the same day and i can't do that. Any idea how i can sorting the matrix without add the release date info but use this for sorting? 

Mike91_0-1727687327857.png

 

1 ACCEPTED SOLUTION
Shivu-2000
Responsive Resident
Responsive Resident

Hin @Mike91 

 

According to my understanding you want to sort a Power BI matrix by the release date of an item, but you don't want to explicitly display the release date in the matrix. 

Solution would be using a Calculated Column and Sorting

    • In your data model, create a calculated column that assigns a unique identifier to each item based on its release date. This identifier should be unique even if multiple items have the same release date.

      Create a Calculated Column:

    ReleaseDateRank = RANKX(ALL(YourTable[ReleaseDate]), YourTable[ReleaseDate])

    Replace YourTable[ReleaseDate] with the actual name of your release date column.

  1. Sort the Matrix:

    • In your matrix visual, drag the calculated column ReleaseDateRank to the rows or columns (depending on your desired layout).
    • Sort the matrix by this calculated column in ascending or descending order.

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Happy to help!

View solution in original post

2 REPLIES 2
Shivu-2000
Responsive Resident
Responsive Resident

Hin @Mike91 

 

According to my understanding you want to sort a Power BI matrix by the release date of an item, but you don't want to explicitly display the release date in the matrix. 

Solution would be using a Calculated Column and Sorting

    • In your data model, create a calculated column that assigns a unique identifier to each item based on its release date. This identifier should be unique even if multiple items have the same release date.

      Create a Calculated Column:

    ReleaseDateRank = RANKX(ALL(YourTable[ReleaseDate]), YourTable[ReleaseDate])

    Replace YourTable[ReleaseDate] with the actual name of your release date column.

  1. Sort the Matrix:

    • In your matrix visual, drag the calculated column ReleaseDateRank to the rows or columns (depending on your desired layout).
    • Sort the matrix by this calculated column in ascending or descending order.

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Happy to help!

Thanks for the help, when i drag the rank value i need to a drill to see the item but near of them remain the rank value, it's possible hide them?

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors