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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 35 | |
| 34 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |