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
Anonymous
Not applicable

Cuestión de RANKX

Hola a todos

Tengo un problema con RANKX.

Aquí está mi modelo de datos :

1 Tabla de hechos : Ventas

2 tablas de dimensiones : Calendario, tiendas

Quiero crear una medida para tener el rango de la tienda sobre el volumen de negocios.

He creado indicadores de medida[CA TTC]: SUM ('Ventas diarias N'[MNT_TTC]) - Suma (TurnOver)

Y finalmente mi RANKX - rankx (all(Stores),Indicators[CA TTC],,DESC)

Aquí está el resultado:

1 ACCEPTED SOLUTION

Hola @jlizzul ,

Puede utilizar la siguiente medida en el objeto visual de la tabla:

Rang CA BU Mois Filtre = var a = SUMMARIZE(ALL(Stores),Stores[Magasin],"CA TTC",[CA TTC Mois],"rank",RANKX(ALL(Stores),CALCULATE([CA TTC Mois],ALLEXCEPT(Stores,Stores[Magasin])),,DESC)) return SUMX(FILTER(a,Stores[Magasin] = MAX(Stores[Magasin])),[rank])

Capture.PNG

Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Saludos

Dedmon Dai

View solution in original post

14 REPLIES 14

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.