This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have this matrix view.
For sizes for clothing going across, how can I sort the sizes like S, M ,L....till 5 XL...then...8,10,12,14 etc
Solved! Go to Solution.
Hi @learner03
You can add a calculated column in your table :
SortOrder = IF(Table[Size]="S",1, IF(Table[Size]="M",2,.............................IF(Table[Size]="5 XL",10,Table[Size]+10))))))
And then you sort you column size by this new column
Check that your SortOrder column has for type "Whole number" :
Please accept it as a solution if it solved your issue
Hi @learner03
You can add a calculated column in your table :
SortOrder = IF(Table[Size]="S",1, IF(Table[Size]="M",2,.............................IF(Table[Size]="5 XL",10,Table[Size]+10))))))
And then you sort you column size by this new column
Check that your SortOrder column has for type "Whole number" :
Please accept it as a solution if it solved your issue
@AntoineTRICHET @Fowmy I did the above but when I click on sort by sortorder it gies me below error-
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 29 | |
| 29 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 39 | |
| 33 | |
| 24 | |
| 23 |