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

Calcular la DISTRIBUCION de los 10 mejores productos en VALOR

Hola

Tengo una tabla de ventas que tengo el TOP 10 productos de venta basados en el VALOR. Ahora quiero calcular sobre la DISTRIBUCION en los mismos 10 productos.

Tengo el enlace de clasificación esto: TOP-RANKX(ALL(Table[product],value))

y luego el TOP 10 CALCULATE([valor], FILTER(table,[TOP]<-10))

Esto funciona bien, pero no puedo hacer que funcione con la DISTRIBUCION al mismo tiempo.

Lo encontré en este post: https://community.powerbi.com/t5/Desktop/How-to-calculate-top-10-highest-in-the-table-and-also-ranki...

¡Cualquiera que pueda ayudar!

H. Kent

2 REPLIES 2
amitchandak
Super User
Super User

@Kent-HGNO , es algo así no funciona

% - divide( CALCULATE([value]), CALCULATE([value], FILTER(allselected(table),[TOP]< ?10)))

De usted puede utilizar % del total, después de hacer clic derecho en la medida en el panel visual

Anonymous
Not applicable

Hola @amitchandak

Bueno - Ya tengo la distribución por Producto en otra columna, y es esa columna que quiero tomar en función del valor (top 10). Puedo hacer los mejores 10 productos basados en el valor, pero es cuando cambio el valor con la distribución se necesita todo el punto de distribución...

Primero hago un RANK:

TOP - RANKX(ALL('Product'[ProdNr]),'Table'[Value])

Entonces hago una selección de ese rango

TOP 10 SKU - CALCULATE('Table'[Value],FILTER('Table',[TOP]<'10)) -- is OK
TOP 10 SKU ver 2 - CALCULATE('Table'[Distribution],FILTER(ALLSELECTED('Table'),[TOP]<-10)) -- NO ESTÁ BIEN
¿Hay alguna forma de que pueda hacer que eso suceda?
¡Gracias de antemano!
K

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.