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
stsau
Frequent Visitor

identify rank number for topN% of a measure

I am testing pareto principle and calculating the top N% of revenue and the underlying responsible customers.
Customer are being ranked by amount of their rev value:

Revenue Rank =CALCULATE(
RANKX(ALL(RevData[enduser_cust_name]); [Total Revenue FY 18]; ;DESC);
ALLSELECTED(RevData[Portfolio])
)

Now I want to compare the numbers of all (unique) customers with the number of customers that make up N% of revenue, so I get the customers that are making up the N% of revenue:
( N% can be selected by What-If slicer 'Revenue %'[Revenue % Value] )
 
Top R% Customers =
IF(ISBLANK([Total Revenue FY 18]) ;
   BLANK();
     IF(RANKX(ALL(PRevData); [Total Revenue FY 18]; ;DESC) < (CALCULATE( [Unique Revenue        Customers];ALL(RevData) ) * ('Revenue %'[Revenue % Value]/100) );
[Total Revenue FY 18];
BLANK()
)
 
)pbi.PNG
 
 
 
 
 
 
 


its all working ok, [Top R% customer] column is showing blanks, once selected N% revenue is reached.
 
However I am not able to get to identify the rank, that corresponds to [Top R% customer] becoming blank, which is the number of customers responsible for N% of revenue.
Searching the forum I see posts that relate to maxx(column), however this is a measure + its only a subset of the underlying table, so countrows would not work either.
Any idea appreciated.
0 REPLIES 0

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.

Top Solution Authors