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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors
Top Kudoed Authors