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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
qwertzuiop
Advocate III
Advocate III

How can I sort a dropdown-list?

Dear PowerBI-Community

 

I thought it was easy, but I don't know how.
I would like to sort this drop-down list accordingly.

Mon
Tue
Wed
...

How can I do this without affecting the rest of my modeling?

 

week.PNG

 

Thank you so much for your help!

Cheers

qwertzuiop

1 ACCEPTED SOLUTION
v-lid-msft
Community Support
Community Support

Hi @qwertzuiop ,

 

We can create a seprate calculated table to meet your requirement:

 

SortTable = 
ADDCOLUMNS (
    DISTINCT ( 'Table'[Wochentag-kurz] ),
    "Index", SWITCH (
        'Table'[Wochentag-kurz],
        "Mo", 1,
        "Di", 2,
        "Mi", 3,
        "Do", 4,
        "Fr", 5,
        "Sa", 6,
        "So", 7,
        0
    )
)

 

Then set the name column sort by index column and create a relationship between the origin table.

1.PNG

 

2.PNG

 

Then we can use the name column in new sort table as the slicer field without changing the origin table.

3.PNG

 


BTW, pbix as attached.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hi @qwertzuiop ,

 

We can create a seprate calculated table to meet your requirement:

 

SortTable = 
ADDCOLUMNS (
    DISTINCT ( 'Table'[Wochentag-kurz] ),
    "Index", SWITCH (
        'Table'[Wochentag-kurz],
        "Mo", 1,
        "Di", 2,
        "Mi", 3,
        "Do", 4,
        "Fr", 5,
        "Sa", 6,
        "So", 7,
        0
    )
)

 

Then set the name column sort by index column and create a relationship between the origin table.

1.PNG

 

2.PNG

 

Then we can use the name column in new sort table as the slicer field without changing the origin table.

3.PNG

 


BTW, pbix as attached.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Seth_C_Bauer
Community Champion
Community Champion

@qwertzuiop You can do this in M (Power Query) or DAX in a calculated column. This post covers both options -> https://community.powerbi.com/t5/Desktop/Sort-by-Day-of-week/td-p/338758


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.