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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bgonen6899
Regular Visitor

Rank by 2 groups and sort by MoveInScore

 

I am trying to create a DAX formula :

If Response Movein% is greater than 0.18 then Group 1 

If Response Movein% is less than 0.18 then Group 2

Within Group 1 Rank (in DESC order) by MoveInScore.

Then continue the rank Group 2

My Goal is to get the end result of the far right column

 

Pr_Prop_CodeGroupMoveInScoreResponse Movein %Rank
213501525.00%1
212651525.00%2
111581528.60%3
302231522.20%4
1083214.540.00%5
2125414.537.50%6
2024114.3321.40%7
2115614.3325.00%8
1013114.3325.00%9
1060114.2522.20%10
108942516.00%11
10451250.00%12
3048024.9213.30%13
1061424.9117.20%14
1069924.815.00%15
2037024.817.10%16
2132624.750.00%17
1043224.7511.10%18
2131824.654.80%19
1013724.4315.20%20
1083024.3314.30%21
1024524.338.10%22
2046324.3315.00%23
2017724.296.90%24
1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

ThxAlot_0-1725267179933.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

4 REPLIES 4
ThxAlot
Super User
Super User

ThxAlot_0-1725267179933.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



Thank you so much Thxalot

This is awesome. great help.

 

I modified your formula slightly (because the Response Rate and Score are DAX measures.

This is the modified formula I used:

 

Rank by GroupsAB by Movein Score by Movein Response % =
VAR _prod =
    ALLSELECTED(Property_Unit[Pr_Prop_Code])

RETURN
    RANKX(
        _prod,
        CALCULATE(
            (IF([Response Movein %] > 0.18, 1, 0)) * 100 + [AvgMoveInsScore],
            ALLEXCEPT(Property_Unit, Property_Unit[Pr_Prop_Code])
        )
    )
ryan_mayu
Super User
Super User

why 21350 is the first and 21265 is the second? they are in the same group and have the same moveinsocre and same response movein%





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Ideally it should look like below:

MoveinScore determines the main ranking (then if possible, to rank by the Respone Movein %)

 

bgonen6899_0-1725241936551.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors