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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

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

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

v-cgao-msft
Community Support
Community Support

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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