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 moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi all,
I need to sort data by Week, but when I try to do it, I got the wrong result the data isn't sorted correctly:
Can we have another way to sort correctly this data?
Solved! Go to Solution.
Looks like your week column is sorting as text. Convert the data type of your Week column to Whole Number and it should work correctly.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Problem solved by converting the column to numbers. Thanks for help.
Looks like your week column is sorting as text. Convert the data type of your Week column to Whole Number and it should work correctly.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@medlalami , Seem like the data type is text, Change it to the whole number.
Or create whole number column with week number and mark as the sort column of this one
refer if needed
https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
Check out the April 2026 Power BI update to learn about new features.
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 |
|---|---|
| 37 | |
| 37 | |
| 31 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 31 | |
| 26 | |
| 23 |