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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Tlotly
Resolver II
Resolver II

Breaking a ranking tie

Good day

Please help with breaking a rank tie. 

I have Ranking measure and Variance measure. When I have a tie, like  Disobothla and Taung below; I then want to use Variance as second measure in order to break the tie. Meaning Taung, should be ranked 7 as it has a smaller variance i.e. It is only 9% over budget, as compared to Disobothla which is 11% over budget.  The reason why they are ranking the same is because my Ranking is based on TotalRank which is 3 measures namely; VarianceRank + dropoutRank + PAR%Rank.

 

Also I must mention that all the 3 measures are coming from 3 separate tables and are all linked to Branch details table.

Tlotly_2-1695716401476.png

The solutions that I see on the community are not resolving my problem.

 

Below are my measures:

 

1. Ranking: 

IF (
    ISBLANK ([TotalRank]  ) = FALSE (),
    RANKX (
        FILTER (
            ALLSELECTED ( 'Centre details'[Branch Description] ),
            [TotalRank]  <> BLANK ()
        ),
        CALCULATE (
            [TotalRank] ,
            ALLEXCEPT ( 'Centre details', 'Centre details'[Branch Description] )
        ),
        ,
        ASC,
        DENSE
    )
)

2. Variance:

var _groups = sum(Groups[NR of Groups])
            var _budget = sum(Budgets[Budget])
            var _diff =  _groups - _budget
            return IF(ISBLANK([countBranch]), BLANK(),
            divide(_diff, _budget))

 

Thank you in advance

Matlotlo

 

 

1 REPLY 1
mlsx4
Memorable Member
Memorable Member

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.