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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
dinesharivalaga
Helper III
Helper III

How to sort a dynamic slicer values based on the another column?

HI Experts,

 

I have a scenario like apply some filters on slicer to sort the values.

Here for example : i am having a slicer with account names which will be increaing when new accounts are added and by default we have a sorting methods like asc & desc in visual itself.

I have a coulmn like account status : OPEN & CLOSED

So based on this account types , the slicer will give the order .

OPEN accounts should come on top & CLOSED accounts are all comes after that .

 

Below the account names slicer i have , this is in alphabet orders now.

OPEN accounts are comes on top & CLOSED should come after that . this is the scenario.

dinesharivalaga_0-1716273489350.png

Please help to sort this asap ?

 

Thanks

DK

 

 

1 ACCEPTED SOLUTION

Hi @dinesharivalaga 

 

go to power query editor then Sort the Status by Desc then sort the Account by Asc.

Uzi2019_1-1716289208071.pngUzi2019_2-1716289228463.png

 

 

then got to add column tab > then index column> 

Uzi2019_3-1716289305661.png

 

index column is added 

save and close power query editor

 

then select account column > then sort by column option > select index

Uzi2019_4-1716289389638.png

 

 

then take you slicer add account column you will get sorted order data

Uzi2019_5-1716289449537.png

 

 

I hope I answered your question!

 

Attaching pbix for reference!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

5 REPLIES 5
Uzi2019
Super User
Super User

hi @dinesharivalaga 

 

can you share excel based data just 2 column account + account status??

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

hi @Uzi2019  : Any clue pls ?

Hi @dinesharivalaga 

 

I think this is what you arelooking 

Uzi2019_0-1716289045482.png

 

 

is it correct??

so i will share pbix file with you.

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi @dinesharivalaga 

 

go to power query editor then Sort the Status by Desc then sort the Account by Asc.

Uzi2019_1-1716289208071.pngUzi2019_2-1716289228463.png

 

 

then got to add column tab > then index column> 

Uzi2019_3-1716289305661.png

 

index column is added 

save and close power query editor

 

then select account column > then sort by column option > select index

Uzi2019_4-1716289389638.png

 

 

then take you slicer add account column you will get sorted order data

Uzi2019_5-1716289449537.png

 

 

I hope I answered your question!

 

Attaching pbix for reference!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi ,

 

I cannot attach any file here , so just putting the data below :

 

AccountStatus
ArvalOpen
Tetra Laval Credit ABOpen
SIDEL SERVICESOpen
Zentiva Group, a.s.Open
Outokumpu OyjOpen
Altair Global RelocationClosed
CBRE, Inc.Closed
CBSClosed
Cisco Systems, Inc.Closed
Discovery Communications, LLCClosed
WorleyClosed
Educational Testing ServicesClosed
Wells FargoOpen
Warner Bros. Entertainment Inc.Closed
FedEx CorporationClosed
UiPath Inc.Closed
Fluke CorporationOpen
UBS AGOpen
Stanley Black & Decker, Inc.Closed
Staples IncClosed
Hydro One Networks IncClosed
STIHLClosed
StrykerClosed
Internal AutomationOpen
INTERNATIONAL PAPER COMPANYOpen
Schneider Electric SAOpen
Metlife JapanOpen
KI WissenOpen
Konecranes AbpOpen
Google Inc.Closed

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.