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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
suchomelb
Helper I
Helper I

Sorting a slicer by the sums of another column

Hi all! I am having a heck of a time finding out how to sort my slicer in order of highest to lowest of a sum in another column. I thought maybe if I was to give each one a rank and then sort by that rank it would essentially let me get the largest sums at the top and the smallest at the bottom of the list.

 

This is what I thought might work, but essentially if theres an easier way I just want the slicer example below to be in that order.

NameHoursRank Slicer Order
Joe81 Joe
Sam122 Sam
Bill64 John
John73 Bill
Kim35 Kim
Sam42  
Joe71  
John73  
Joe71  
Joe21  
Kim25  
Joe51  

 

Thanks in advance for any and all help.

1 ACCEPTED SOLUTION
HarishKM
Memorable Member
Memorable Member

@suchomelb  Hello ,
Then you can create a conditonal column in power query.
Give conditon like this..

Slicer OrderSorting
Joe1
Sam2
Bill3
John4
Kim5


Then go to data view after loading new data using close and apply button in power query . select your slicer column then use sort by column -> select your newly created sorting column.
and Also you can sort your column by asc and Dsc using slicer 3 dot menu.
it will fulfill your requirement.

View solution in original post

3 REPLIES 3
HarishKM
Memorable Member
Memorable Member

@suchomelb  Hello ,
Then you can create a conditonal column in power query.
Give conditon like this..

Slicer OrderSorting
Joe1
Sam2
Bill3
John4
Kim5


Then go to data view after loading new data using close and apply button in power query . select your slicer column then use sort by column -> select your newly created sorting column.
and Also you can sort your column by asc and Dsc using slicer 3 dot menu.
it will fulfill your requirement.

HarishKM
Memorable Member
Memorable Member

@suchomelb Hello,
you can use this way to sort by anther column.

HarishKM_0-1687270420113.png

 

Thanks

Harish M

 

When I click on my slicer I don't have those options to sort by.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors