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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
EaglesTony
Helper V
Helper V

How do I sort a slicer based on another column

I have a table that contains the following:

 

Version Name

Version Start Date

 

I have a slicer with Version Name mapped to it to show in the slicer

 

Here is sample data:

 

Version Name      Version Start Date

CM_Apr_2022      03/16/2022

CM_Apr_2023      04/14/2023

CM_Ap22_2022   04/13/2022

CM_Mar_2024     03/01/2024

 

How I want to show this is based on Version Start Date desc, so it would show in the slicer as:

CM_Mar_2024 

CM_Apr_2023 

CM_Ap22_2022

CM_Apr_2022

 

I did do the sort on the Start Date first, but still not in this order.

 

Also, as a bonus it would be nice to show both fields in the slicer.

 

Thank you

 

1 ACCEPTED SOLUTION
audreygerred
Super User
Super User

Hello! You have to set the Sort By order in the Column Tools ribbon: Sort one column by another column in Power BI - Power BI | Microsoft Learn

In this case, you would sort Version Name by Version Date in descending order.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
audreygerred
Super User
Super User

Hello! You have to set the Sort By order in the Column Tools ribbon: Sort one column by another column in Power BI - Power BI | Microsoft Learn

In this case, you would sort Version Name by Version Date in descending order.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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