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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ClaraBcn
Frequent Visitor

Sorting by value a field parameter in a Matrix table

Dear network,

I have an issue with Field Parameters as I can't sort the values by my main field parameter which is A24. Values get sorted by alphabetical order. I found a workaround for column chart visuals but no solution yet for the matrix. Does anyone has a solution for that?

 

ClaraBcn_0-1712768412915.png

Thank you!

2 REPLIES 2
ClaraBcn
Frequent Visitor

No, my field parameters are these ones (Main scenario, Comp scenario (1) and Comp Scenario (2):

 

Actually I want that my matrix table gets sorted out by the dynamic chose of the measure that is selected from Main scenario (it can be A24, A23, A20, B24.., etc). The sorting needs to be related to the sales amount of that particular measure as I'm showing top 10 products.

ClaraBcn_0-1712768901667.png

 

audreygerred
Super User
Super User

Are A22, A23, and A24 the field parameter values? If they are, you can click on the field parameter table so that you can see the DAX and then you can change A24 to be 0, A23 to be 1, and A22 to be 3. The numbers listed in the DAX are the order the field parameters show up in. Here is how you can edit it after it is created: https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters#edit-a-field-par...

 

When you create the field parameter in the first place, you can drag and drop to get them in the order you want, but once it is made you need to adjust the DAX numbering for the order.





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

Proud to be a Super User!





Helpful resources

Announcements
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.