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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Matrix Table- Column Header Custom Sorting and Sorting of Either Number or Percentage Column

Hello Members,

 

I need assistance in below mentioned requirements and my Data Source is SSAS:

 

Firstly, I need to list the column header based on particular custom sequence without having to show the numbers of sequencing. Attach is the screenshot for your reference. I do not want the sequencing 07, 08 in column header to appear but would want the column header to be in the particular order as shown below(Modern News Junkies, News Disillusioned etc).

 

Second, I need to be able to sort either by Number or Percentage Column as currently when i try sorting using any one, it doesn't seem to work.

 

Lastly, Is there anyway we can filter only Number or Percentage column, incase we just want to compare between Numbers or vice-versa? Basically hiding of one column.

 

sizi_0-1678598471999.png

 

Thanks in advance.

 

4 REPLIES 4
Vmpbi
Frequent Visitor

Thanks for sharing… check out the links below. It provides a comprehensive guide on how to sort measures as columns

in a matrix visual.

https://insurancedatainsights.blog/2024/04/27/dax-topn-brokers-and-others/

Unlock Dynamic Data Display In Your Power BI Matrix

Anonymous
Not applicable

Hi @Anonymous ,

 

You can create a new table which contains the sorting.

For example, by default, he sorts by number size, I want to customize a sequence, you can do it as follows.

vstephenmsft_0-1678781642492.png

Create a new table.

vstephenmsft_1-1678781713048.png

Sort text column by sort column.

6.png

Create a relationship and in general, it is one-to-many.

vstephenmsft_2-1678782129864.png

Replace the text column with the new table, and you will get the result of the custom sort.

vstephenmsft_3-1678782174690.png

Sort a Column with a Custom Order in Power BI - RADACAD

 

   

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

Did you read OP? She's using SSAS. You can't just create a table against AS.

Anonymous
Not applicable

Hi Stephan,

 

I am using direct query and hence on power bi file everything is disabled. I need solution that can be implemnetd on SSAS side. However appreciate your help.

 

Let me know if there's anything that can be done on cube side which meets my requirement.

 

Also, I am talking about matrix visual in here which doesn't let you sort like the way it is in Table visual.

 

Thanks,

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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