Forum Discussion

jochungJE's avatar
jochungJE
Frequent Visitor
7 years ago
Solved

Ranking Column by Supplier Grouping

Hi, I am new to Power BI and I am hoping I can get some help with ranking issue. Thanks in advance for all your help with this question.   I have a table that contain supplier score by category an...
  • v-piga-msft's avatar
    v-piga-msft
    7 years ago

    Hi jochungJE ,

    For your requirement, please refer to the formulas below.

    Measure =
    COUNTROWS (
        FILTER (
            ALL ( new ),
            ISONORAFTER (
                    new[sum of score], SELECTEDVALUE ( new[sum of score] ), DESC,
                    new[Supplier], SELECTEDVALUE ( new[Supplier] ), DESC
            )
        )
    )
    
    Measure 2 = RANKX(ALL(new),[Measure],,DESC,Dense)

    Here is the output.

    More details, please refer to my attachment.

    Best Regards,

    Cherry