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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
RIDWIV
Helper I
Helper I

Sorting the value in slicer chart

Hello all,

Hope you are doing good.

I am encountering one issue i want to arrange ip address in slicer chart as per the count of user id. For example if any ip address is having 5 user id(hit made to particular ip address 5 times) it should come in first position, ip address having 4 user id count(hit) it should come in second position and so on.

How many IP address hit per client. That count should reflect in slicer and can be ascending and descending way.

RIDWIV_1-1687775184372.png

 

 

RIDWIV_0-1687775013268.png

 

 

2 REPLIES 2
collinsg
Super User
Super User

Good-day @RIDWIV 

Here are some steps which should achieve your goal.

  1. Group by IP address (and check the "Advanced" option).
  2. For the aggregations 
    1. Add a column "Count of Users", with operation = Count Rows.
    2. Add a column "All Rows", with operation = All Rows.
  3. Expand the "All Rows" column
    1. Uncheck "Use original column names as prefix".
    2. Select all columns except IP address.
  4. Load to the data model and switch to "Data View".
  5. In Data View select the IP column and from the "Column Tools" ribbon choose "Sort by Column".
  6. Sort by Count of Users.
  7. Insert your slicer visual and click the ellipsis to bring up a menu with "Sort axis" as an option. Sort ascending or descending as you please.

Hope this helps

 

Setting the grouping

collinsg_0-1687809161258.png

 

The result

collinsg_1-1687809237247.png

 

Hello,

 

Thank you for sharing the information. But I want value in slicer to be organised in ascending or descending order.

 

RIDWIV_0-1688361539972.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors