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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Sorting a filter

Hello, I'm new at Power BI and at the X axis I have the weeks, and I've the amount of sales of that week at Y axis. But when I put the filter it's really strange the sort of the filter, right now I've it as the following:

-week 1

- week 10

- week 2

- week 3

- week 4

-week 5

- week 6

- week 7

- week 8

- week 9

 

Does any body know how to help me? I don't know why week 10 isn't after week 9

1 ACCEPTED SOLUTION
user01
Resolver I
Resolver I

Because 1 comes before 9. The week number should have a leading zero, ie. Week 01, Week 02, ... Week 09, Week 10. Alternatively, trying making another column with the order ("Order") you want, then sort your "Week" column by the "Order" column using the Column Tools > Sort by column.

 

Something like this:

https://community.fabric.microsoft.com/t5/Desktop/Sorting-the-Slicer/m-p/24565

View solution in original post

4 REPLIES 4
user01
Resolver I
Resolver I

Because 1 comes before 9. The week number should have a leading zero, ie. Week 01, Week 02, ... Week 09, Week 10. Alternatively, trying making another column with the order ("Order") you want, then sort your "Week" column by the "Order" column using the Column Tools > Sort by column.

 

Something like this:

https://community.fabric.microsoft.com/t5/Desktop/Sorting-the-Slicer/m-p/24565

Anonymous
Not applicable

Thanks a lot! It worked perfectly

vanessafvg
Super User
Super User

because its a text field not a date or number field. do you have a date table?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Yes I have date, and for example I have 1/01/2024 in column b and in column A I have week 7image.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors