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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Pooja_Mishra
Helper I
Helper I

Power BI Desktop

Hi,

 

Hope you all are doing well!

I am trying to create a report using Matrix visualization. By default the columns are taking in an alphabetical order as shown in table 1. But I want my report to be as shown in table 2. Can anybody help me on this?

 

Table 1: 

GroupsABCDE
1xxxxx
2xxxxx
3xxxxx
4xxxxx
5xxxxx

 


Table 2:

 

GroupsDCAEB
1xxxxx
2xxxxx
3xxxxx
4xxxxx
5xxxxx
1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Pooja_Mishra 

 

If your data is like the following image, you could try my method.

120101.jpg

Open Power Query Editor and add a conditional column Sort Order.

120102.jpg

Apply the changes in Query Editor and go to Power BI Desktop. Select Name column and sort it by Sort Order column.

120103.jpg

After that, you will find the matrix visual display as what you expected.

120104.jpg

 

Best Regards,
Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.

View solution in original post

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @Pooja_Mishra 

 

If your data is like the following image, you could try my method.

120101.jpg

Open Power Query Editor and add a conditional column Sort Order.

120102.jpg

Apply the changes in Query Editor and go to Power BI Desktop. Select Name column and sort it by Sort Order column.

120103.jpg

After that, you will find the matrix visual display as what you expected.

120104.jpg

 

Best Regards,
Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.

Anonymous
Not applicable

@Pooja_Mishra Hover over the table and when you see the ellipses , click on that and you will find an option to Sort.

There you can select the way you want.

mahoneypat
Employee
Employee

You need to use the Sort By Column feature. Please see this link.

Sort by column in Power BI Desktop - Power BI | Microsoft Docs

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.