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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
drew61199
Frequent Visitor

How to SUM a series of RANKS

My dataset consists of a list of facilities and several metrics. I rank the metrics individually amongst the facilities and then sum the ranks for a "composite score".....ie.....facility A may get a 10, facility B a 15, etc. Finally, I rank the composite score and this is ultimately how we identify a top opportunity facility (easier for mgmt to understand '1st' or '2nd' than a random number for a composite score). 

 

I am now attempting a trend with an "overall top opportunity" (below). I simply included the "composite rank" in a matrix by facility and date. I expected it to 'subtotal' based on the series of ranks, but instead, it appears that it is somehow re-ranking all of the individual KPIs rolled up based on the date range selected. As you can see, I would expect the 5th row to be #2 overall. Is there a way to simply SUM or AVG the ranks? I cannot seem to figure out the syntax. Thanks in advance

 

drew61199_1-1668572280788.png

 

 

1 ACCEPTED SOLUTION

Hi, @drew61199 

Please try formula like:

Rank =
VAR _tab =
    SUMMARIZE ( ALLSELECTED ( 'Table' ), 'Table'[Product], "_total", [total] )
VAR _rank =
    RANKX ( _tab, [total],, ASC, DENSE )
RETURN
    IF ( HASONEVALUE ( 'Table'[Date] ), SUM ( 'Table'[Value] ), _rank )

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
daXtreme
Solution Sage
Solution Sage

Sample data please.

Hi, @drew61199 

Please try formula like:

Rank =
VAR _tab =
    SUMMARIZE ( ALLSELECTED ( 'Table' ), 'Table'[Product], "_total", [total] )
VAR _rank =
    RANKX ( _tab, [total],, ASC, DENSE )
RETURN
    IF ( HASONEVALUE ( 'Table'[Date] ), SUM ( 'Table'[Value] ), _rank )

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.