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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Community Champion
Community Champion

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.