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
William_Moreno
Helper II
Helper II

Análisis de Pareto

Hola gente, ¡Necesita ayuda! Quiero hacer un análisis 80/20 hice la siguiente tabla con el siguiente DAX:

Valor de inventario: suma(Inventario[Inventario ($)])
Rango de Rango (Rank)RANKX( ALL(Register[Code]), [Valor de inventario],, DESC )
Valor de inventario Acc ?CALCULATE([Valor de inventario], TOPN([Rank], ALL(Register[Code]), [Valor de inventario], DESC))

William_Moreno_0-1600273945567.png

Sin embargo, cuando pongo un atributo del código de producto, la clasificación (rango) se pierde y distorsiona mi análisis, como se indica a continuación:

Sem título.png

¿Cómo hago que un análisis sea correcto al aplicar atributos en el código del producto (por ejemplo: tipos, familia y otros)?

Gracias en avanzado

3 REPLIES 3
vanessafvg
Super User
Super User

¿Qué espera ver en sus resultados? puede por favor proporcionar un ejemplo




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Hello, thanks for your reply!

 

I expected the ranking to remain the same, it means that the highest value keeps number 1 and not have repeated numbers.

 

If you notice it ranks by the type of product, but the type is just an attribute.

 

I would wish that the return it was like the table below:

 

CodeRankInventory ($)Inventory ($) AccType
749764616.885.839,976.885.839,97Raw Material
774061823.344.454,8410.230.294,81Raw Material
285758232.833.388,2213.063.683,03Packaging
773891442.715.712,5315.779.395,56Raw Material
709669252.632.064,6118.411.460,17Raw Material
758746862.316.370,5320.727.830,70Raw Material
219180872.171.456,0722.899.286,77Packaging
765228382.128.575,6325.027.862,40Raw Material
792277991.666.849,2326.694.711,63Raw Material
7322027101.653.872,9428.348.584,57Raw Material
7007089111.580.017,9229.928.602,49Raw Material
2956524121.284.415,5631.213.018,05Packaging

probar este

Rango de Rango (Rank)
CALCULAR (
RANKX ( ALLSELECTED ( Register[Code] ), CALCULATE ( [Valor de inventario] ) ),
ALLEXCEPT ( Registrarse, Registrarse[Código] )
)





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.