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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Iris03
Regular Visitor

Help needed for Rankx

I have a question about Rankx. I need to rank all brand by total unit except brand"Other".  But I don't know how to  to filter out the “Other”.

 

I write the mesure as below, it just not showing the "Other". It make me very confused about that.  I wannt to get result is A 1, C  2, B 3.

Ranking = If(AND(HASONEVALUE('Sample data'[Brand]),SELECTEDVALUE('Sample data'[Brand])<>"Other"),RANKX(All('Sample data'[Brand]),[Total unit]))

Iris03_2-1694594524694.png

 

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try this

Measure = 
ROWNUMBER(FILTER(ALL('Table'),'Table'[Cat]<>"Other"),ORDERBY([Total unit],DESC),DEFAULT)

 

Screenshot_2.png

View solution in original post

2 REPLIES 2
Iris03
Regular Visitor

Many thanks.😀

Ahmedx
Super User
Super User

pls try this

Measure = 
ROWNUMBER(FILTER(ALL('Table'),'Table'[Cat]<>"Other"),ORDERBY([Total unit],DESC),DEFAULT)

 

Screenshot_2.png

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.