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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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