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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors