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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Syndicate_Admin
Administrator
Administrator

mi error de RANKX

Hola

Soy un novato y trato de entender y clasificar los puntos dados a casa por año grupo con estos datos simples: He hecho en excel ningún problema de trabajo de rango, pero trato de clasificarlo en power bi con esto:

rankingbyyear =
RANKX(
FILTER('data House points','data House points'[Year]=BEFORE('data House points'[Year])),
'puntos de la casa de datos'[puntos],
,ASC
)

me dio un error: Query(2,1) La sintaxis de "RANKX" es incorrecta.

Cualquier puntero será muy apreciado. Gracias de antemano.

AñoCasa - MatrixPuntosRango
Año 9Slytherin11263
Año 9Hufflepuff12144
Año 9Ravenclaw10932
Año 9Gryffindor9791
Año 8Slytherin7272
Año 8Hufflepuff4701
Año 8Ravenclaw8934
Año 8Gryffindor8463
Año 7Slytherin17594
Año 7Hufflepuff12933
Año 7Ravenclaw9611
Año 7Gryffindor10252
Año 13Slytherin-42
Año 13Hufflepuff93
Año 13Ravenclaw93
Año 13Gryffindor-71
Año 12Slytherin53
Año 12Hufflepuff-132
Año 12Ravenclaw84
Año 12Gryffindor-221
Año 11Slytherin1702
Año 11Hufflepuff2243
Año 11Ravenclaw2884
Año 11Gryffindor861
Año 10Slytherin4641
Año 10Hufflepuff5693
Año 10Ravenclaw6004
Año 10Gryffindor5112
2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Hola Barthel, muchas gracias que lo hace perfectamente.

Syndicate_Admin
Administrator
Administrator

Hola @Strikemaster,

Pruebe esta medida:

Rank = 
RANKX (
    CALCULATETABLE ( 'Table', VALUES ( 'Table'[Year] ), ALLSELECTED () ),
    CALCULATE ( SUM ( 'Table'[Points] ) ),
    ,
    ASC
)

Barthel_0-1673019830862.png

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Kudoed Authors