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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
IanT76
Helper I
Helper I

Ranking repetitive KPI's

We have a set of KPI's that each business is assessed against and scored (out of 4.00) each month - example of data set;

 

Annotation 2020-07-28 120645.png

 

I'd like to build a ranked table see we can see where each Business sits each moth, and see who's moving up/down in terms of performance as the year progresses.

 

I've used this formula; Rank = RANKX('SVP_Summary',('SVP_Summary'[Score]),,DESC,Dense) - but get the below output; the layout is correct, but I can't figure out why the BU's are not all displayed on a table of only 22 rows???

Annotation 2020-07-28 120644.png

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @IanT76 

Create a column as below:

Capture6.JPGCapture7.JPG

rank =
RANKX (
    FILTER ( 'Table', 'Table'[month] = EARLIER ( 'Table'[month] ) ),
    'Table'[score]
        + DIVIDE ( RANKX ( 'Table', [cate],, DESC, DENSE ), COUNTROWS ( 'Table' ) + 1 ),
    ,
    DESC,
    DENSE
)

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
v-juanli-msft
Community Support
Community Support

Hi @IanT76 

Create a column as below:

Capture6.JPGCapture7.JPG

rank =
RANKX (
    FILTER ( 'Table', 'Table'[month] = EARLIER ( 'Table'[month] ) ),
    'Table'[score]
        + DIVIDE ( RANKX ( 'Table', [cate],, DESC, DENSE ), COUNTROWS ( 'Table' ) + 1 ),
    ,
    DESC,
    DENSE
)

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-juanli-msft - perfect!

vanessafvg
Super User
Super User

maybe i m being a bit slow, but i am struggling to understand what you asking, what are you expecting?




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Hi - I'm expectign a table of 22 rows (we have 22 Businesses) and the Businesses will move up/down in each month's column based on their scores... this is how it currently looks in oue Excel-based version;

 

Annotation 2020-07-28 122829.png

@amitchandak - Almost there!...

 

I've sorted the pivots and now have a 22-row table, with all Businesses in correct ranked order, courtesy of including the FILTER expression in the formula, based on Month; 

RANKX(FILTER('SVP_Summary','SVP_Summary'[Month]=EARLIER(SVP_Summary[Month])),'SVP_Summary'[Score],,DESC,Skip)

 

However, the table is not displaying all Business that have common scores;  compare January below from PowerBI and Excel ..positions 9, 10, 11 & 12 in BI are blank but would like these to display those tied Businesses (should be Repasa, Reyser, UAE Ports, Ukraine)....

 

How do I solve this last issue??

 

Annotation 2020-07-28 122830.pngAnnotation 2020-07-28 122829.png

Thanks Amit - let me review and revert. Cheers!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.