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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

rank order for classement

hello i need some help to create a new colum with placements for people. i use a measure to let the point everybody has to calculate but i want a placement in a order by the measure of points. if made a exaple beneath to show how the data looks like i how i want the colum. i use a measure to get the points the teams Scored the measusre i use is: "

CALCULATE(SUM('Uitslagen Tour de France'[Punten]))"
 
 
Placement (i need to create this colum)Nameteam
1RoyAZ
1RoyGo Ahead Eagles
1RoyPsv
1RoyFeyenoord
2klaasAjax
2klaasPSV
2klaasFeyenoord

 

so i want the person that has the most points get placement 1 then placement 2 etc etc 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Please try:

Placement =
IF (
    ISINSCOPE ( 'Uitslagen Tour de France'[Name] ),
    RANKX (
        ALLSELECTED ( 'Uitslagen Tour de France' ),
        CALCULATE (
            SUM ( 'Uitslagen Tour de France'[Punten] ),
            ALLEXCEPT ( 'Uitslagen Tour de France', 'Uitslagen Tour de France'[Name] )
        ),
        ,
        DESC,
        DENSE
    )
)

RANKX - DAX Guide

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Please try:

Placement =
IF (
    ISINSCOPE ( 'Uitslagen Tour de France'[Name] ),
    RANKX (
        ALLSELECTED ( 'Uitslagen Tour de France' ),
        CALCULATE (
            SUM ( 'Uitslagen Tour de France'[Punten] ),
            ALLEXCEPT ( 'Uitslagen Tour de France', 'Uitslagen Tour de France'[Name] )
        ),
        ,
        DESC,
        DENSE
    )
)

RANKX - DAX Guide

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Anonymous
Not applicable

Hi @Anonymous ,

 

Please try:

Placement =
IF (
    ISINSCOPE ( 'Uitslagen Tour de France'[Name] ),
    RANKX (
        ALLSELECTED ( 'Uitslagen Tour de France' ),
        CALCULATE (
            SUM ( 'Uitslagen Tour de France'[Punten] ),
            ALLEXCEPT ( 'Uitslagen Tour de France', 'Uitslagen Tour de France'[Name] )
        ),
        ,
        DESC,
        DENSE
    )
)

RANKX - DAX Guide

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.