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

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.

Reply
Krijgerss21
Helper II
Helper II

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
v-cgao-msft
Community Support
Community Support

Hi @Krijgerss21 ,

 

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
v-cgao-msft
Community Support
Community Support

Hi @Krijgerss21 ,

 

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

v-cgao-msft
Community Support
Community Support

Hi @Krijgerss21 ,

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors