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
Anonymous
Not applicable

Simple Sequential rank / number column added to table

I have table 'Append 1' visual sorted by [% Compliant] and filtered on >=1 (100%) [% Delivered[. I want to rank these by % Compliant. I have tried the rankx function for a new mesure but get varying results. I cannot seem to get a simple out that ranks by % compliant.

 

Site% Compliant% Delivered# Non-Compliant
Chillicothe99.80%100%3
Des Moines99.40%100%12
White City99.20%100%9
Boise99.20%100%21
Portland98.40%100%90
Seattle98.30%100%122
Roseburg98.20%100%34
Northern Indiana98.00%100%53
Alaska97.60%100%32
Dayton97.40%100%86
Cincinnati97.30%100%96
Indianapolis97.30%100%119
Danville97.00%100%53
Ann Arbor96.40%100%163
Battle Creek95.90%100%101
Saginaw95.30%100%103
Salt Lake92.80%100%283
Sioux Falls92.00%100%138
Detroit91.10%100%252
Fort Harrison90.90%100%195
Cleveland90.60%100%675
North Chicago94.80%95%148
Iron Mountain92.10%94%97
Marion96.00%93%90
1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, in the visual filtered for [% Delivered]>=1, you want to create a measure to rank the %compliant. Here's my solution.

Rank =
RANKX (
    ALLSELECTED ( 'Table' ),
    CALCULATE ( SUM ( 'Table'[% Compliant] ) ),
    ,
    DESC,
    DENSE
)

Get the result.

vkalyjmsft_0-1653028935783.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, in the visual filtered for [% Delivered]>=1, you want to create a measure to rank the %compliant. Here's my solution.

Rank =
RANKX (
    ALLSELECTED ( 'Table' ),
    CALCULATE ( SUM ( 'Table'[% Compliant] ) ),
    ,
    DESC,
    DENSE
)

Get the result.

vkalyjmsft_0-1653028935783.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

lbendlin
Super User
Super User

You have duplicates in the data. The Rank function needs help deciding how to sort these. What is your expected outcome and why?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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