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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
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