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
obera
Frequent Visitor

Sort by Data Source Order in Matrix Visual

Hi everyone, I understand how to change the sort in a Visual to sort by values/alphabetical, and to change which column to sort the data by, but I have a different situation. I am pulling from a table that has text information in a specific order in the column. This order is not alphabetical. When I create a Matrix from this table, it automatically sorts and shows the data alphabetically. How do I show the data in the same order that it is in the table?

 

Example:

Source Table

Column 1 ||  Column 2

--------------------------

B Text      ||   1.85

A Text      ||   2.01

C Text      ||   1.36

 

Matrix Visual (this is how it displays by default)

Rows = Column 1

Values = Column 2

 

Column 1 ||  Column 2

--------------------------

A Text      ||   2.01

B Text      ||   1.85

C Text      ||   1.36

 

At a minimum I need "B Text" to be on top, but preferrably I want Column 1 in my Matrix Visual to display in the same order as it is in the source table. They are unique values.

 

Thanks for your time.

1 ACCEPTED SOLUTION
Nathaniel_C
Community Champion
Community Champion

Hi @obera ,

Add an index column to your table, then sort by that index column.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
Nathaniel_C
Community Champion
Community Champion

Hi @obera ,

Add an index column to your table, then sort by that index column.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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