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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Agmsf
Advocate I
Advocate I

RANKX no da el resultado esperado

Hola,

 

Estoy teniendo problemas a la hora de tirar un ranking de ventas (adjunto foto). 

No entiendo por qué me devuelve varios "1" y varias posiciones repetidas. ¿Alguie sabe a qué se debe?

 

Gracias de antemano.

Rank problem.png

1 ACCEPTED SOLUTION

This issue is now solved as the "AdventureWorks" database has duplicated product names with different IDs...

View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

RANKX(Todo('Tabla'[Producto]),[suma de la venta],,DESC,Denso)
De hecho, llamaste a la tabla completa en lugar de a la columna de producto.

Syndicate_Admin
Administrator
Administrator

Pruebe esto:

RANKX(Todo('Tabla'[Producto]),[suma de la venta],,DESC,Denso)

Hi haseebsuhail943,

 

Thanks for your prompt reply, but it didn't work:

 

Rank problem2.png

This issue is now solved as the "AdventureWorks" database has duplicated product names with different IDs...

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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

Top Solution Authors