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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
HitcH
Helper II
Helper II

Rank not working

Hello Power BI people

I want to see the rank of my products, based on sales, but I get some multiple ranks:

HitcH_0-1685110511576.png

As you can see RANKkK is showing 6 rank 1 and 3 rank 5. This is the formula that I'm using:

RANKkK = RANKX(ALL(Controlling), [Somma fatt.], ,DESC)
 
Can you help me finding out the error?
 
Thanks a lot in advance!!

 

1 ACCEPTED SOLUTION
HitcH
Helper II
Helper II

Auto - Solved

The correct formula:

RANKkK = RANKX(ALL(Controlling[VIB]), CALCULATE(sum(Controlling[Fatt. lordo])), ,DESC)

View solution in original post

4 REPLIES 4
HitcH
Helper II
Helper II

Auto - Solved

The correct formula:

RANKkK = RANKX(ALL(Controlling[VIB]), CALCULATE(sum(Controlling[Fatt. lordo])), ,DESC)
pratyashasamal
Memorable Member
Memorable Member

Hi @HitcH ,
You try this type of calculation :-
For example

Ranking on Brand :=
IF (
    ISINSCOPE ( 'Product'[Brand] ),
    RANKX (
        ALLSELECTED ( 'Product'[Brand] ),
        [Sales Amount]
    )
)Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Uppp 😪

Hi Pratyasha 

My intention would be to have the complete rank, without differenciation per brand or whatever. Do you know why my formula is not working?

 

Thanks in advance!

Helpful resources

Announcements
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