Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |