cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors