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.
Hello,
Am trying to come up with a logic that will help me in creating a ranking.
So the rank depends on two variable percentages (Columns). Lets Say Percentage 1 and Percentage 2.
The desirable situations for determining the rank are combination of:
1. Percentage 1 should be heighest.
2. Percentage 2 should be lowest.
Is there any formula which I can create a measure with, if not any suggested work arounds?
Solved! Go to Solution.
Hi @FaisalKarawalla ,
Please try below steps:
1.Create an auxiliary column
HP_Column =
VAR rank_by_kpi =
RANKX ( 'Table', 'Table'[KPI Percentage],, DESC )
VAR rank_by_death =
RANKX ( 'Table', 'Table'[Death Percentage],, ASC )
VAR ct_rows =
COUNTROWS ( 'Table' ) + 1
RETURN
rank_by_death + DIVIDE ( rank_by_kpi, ct_rows )
2.Rank by the new auxiliary column
Rank_Num =
RANKX ( 'Table', 'Table'[HP_Column],, ASC )
Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @FaisalKarawalla ,
Please try below steps:
1.Create an auxiliary column
HP_Column =
VAR rank_by_kpi =
RANKX ( 'Table', 'Table'[KPI Percentage],, DESC )
VAR rank_by_death =
RANKX ( 'Table', 'Table'[Death Percentage],, ASC )
VAR ct_rows =
COUNTROWS ( 'Table' ) + 1
RETURN
rank_by_death + DIVIDE ( rank_by_kpi, ct_rows )
2.Rank by the new auxiliary column
Rank_Num =
RANKX ( 'Table', 'Table'[HP_Column],, ASC )
Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much!
Works like a charm!
Hi there
Can you please show us (a picture?) an example of what you'd like to achive and what your input is? It'll be easier to come up with something useful. Thanks.
Thank you for the response, find the picture attached.
The end result is to get a list of the most signifincant hospitals on which if the KPI percentage is improved it will result in the most drastic change on the overall average KPI permorfance.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
24 | |
20 | |
15 | |
12 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
18 |