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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Agmsf
New Member

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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