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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Tom02
Frequent Visitor

Sorting the values of a column in a matrix

12.jpg

Hello,

I made a matrix in which the column y is divided by proceeds and total costs. So, the distinction is made by the matrix. Now I think it is sorting on the alphabet.  However, I'd like to show first total costs and then proceeds. I don't know how to sort this because these values are actually one column in the data. 

Thank you in advance.

Regards,

Tom

 

1 ACCEPTED SOLUTION

Hi @Bipin-Lala 

Thank you for your answer.

I eventually solved it on a different way:

I made a conditional column, with total costs = 1, proceeds = 2 (called it ranks).

Then I made this ranks column a number type. 

Then I sorted the table on the basis of the ranks column. This causes that the initally column also got sorted in the right way.

When I tried again in the matrix, I got the sequence I wanted.

 

Regards,
Tom

 

 

View solution in original post

2 REPLIES 2
Bipin-Lala
Solution Supplier
Solution Supplier

Hi @Tom02,

 

I just wrote a solution for a very similar question a day ago. Try referring to this post.

 

Let me know if this helps, or if you have any other specific requirements!

Hi @Bipin-Lala 

Thank you for your answer.

I eventually solved it on a different way:

I made a conditional column, with total costs = 1, proceeds = 2 (called it ranks).

Then I made this ranks column a number type. 

Then I sorted the table on the basis of the ranks column. This causes that the initally column also got sorted in the right way.

When I tried again in the matrix, I got the sequence I wanted.

 

Regards,
Tom

 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.