Forum Discussion

Tlotly's avatar
Tlotly
Helper V
1 year ago
Solved

Breaking a tie issue

Good day,   I need help with the ranking measure below. It's not able to break the tie when two branches have a tie on Variance % and the underlying values (sumGroups/sumBudget) for Variance %  are...
  • Kedar_Pande's avatar
    1 year ago

    To calculate Rank you can try:

    RankBranch =
    RANKX(
    ALL('YourTable'),
    CALCULATE(
    [Variance%] +
    DIVIDE([sumGroups], 1000000) +
    DIVIDE([sumPO], 1000000000000)
    ),
    ,
    DESC,
    DENSE
    )

    This should break ties in the desired manner. Let me know if it works for your scenario!

     

    If this helped, a Kudos 👍 or Solution mark would be great! 🎉
    Cheers,
    Kedar
    Connect on LinkedIn