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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

RANX showing different values as ties

I am trying to rank products by sales. For some reason it is ranking products like a tie even though sales are different.

Formula:  = RANKX(ALL(Sales[ Product Title]),[Total Net])

 

Picture(each line is a product):Screen Shot 2018-10-31 at 1.55.55 PM.png

 

Any help?

4 REPLIES 4
Ronald123
Resolver III
Resolver III

Hello @Anonymous,

 

Try this;

 

ProductRank = RANKX(
    ALL(Sales);CALCULATE(SUM(Sales[Net Sale]));;DESC)

 

Greets,

 

Ronald

Anonymous
Not applicable

That marked everything as 1. I dont need to take into account "product title" which would be the first coloumn in my picture?

Is what you posted orginally source data or how it looks in a table/matrix visual? If you can post sample source data that would be helpful. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

I have a sales table with a product on each line and multiple lines make up an order

 

 

Order #SKUProductCategoryUnitsNet SalesDate
12345Product ARed3 $       15.001/1/18
1456Prouct BBlue1 $         2.001/1/18
2874Product CBlack2 $         8.001/1/18
3456Prouct BBlue1 $         2.001/1/18
38452Product DGreen2 $         6.001/1/18
42345Product ARed5 $       25.001/1/18


So I want to see that Prouct A was number 1 with $40 and so on. I have hundreds of proucts and i want to be able to see top 10 by category.  

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.