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
Syndicate_Admin
Administrator
Administrator

Pareto no funciona correctamente

Hola a todos

Tengo el siguiente resultado de la tabla

o59393_0-1660512759480.png

Como se ha visto, la primera fila no muestra el porcentaje acumulado, y la 4ª fila de la columna acumulativa no suma correctamente.

El DAX que tengo es:

Pareto UC Cumulative = 

VAR TotalUC = CALCULATE([Volume],ALLSELECTED('Ship From'))
VAR CurrentUC = [Volume]
VAR SummarizedTable = 
SUMMARIZE(
    ALLSELECTED('Ship From'),
    'Ship From'[Bottler Owner],
    "Volume", [Volume])
VAR CumSum = 
SUMX(
FILTER(SummarizedTable,[Volume]>=CurrentUC),
[Volume]
)
Return
DIVIDE(CumSum,TotalUC)

¿Alguna idea de lo que podría estar mal?

Gracias.

Aquí está la tabla:

Propietario del embotelladorVolumenPareto UC AcumulativoPareto UC
1 480,600,034.00 37.01%
2 378,390,784.0066.14%29.14%
3 216,308,340.0082.80%16.66%
4 101,168,972.0082.80%7.79%
5 44,268,330.0094.00%3.41%
6 29,624,323.0096.28%2.28%
7 29,249,209.0098.53%2.25%
8 17,656,202.0099.89%1.36%
9 1,429,489.00100.00%0.11%
10 100.00%
2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Hola

Traté de crear un dato de muestra para mí y luego crear medidas sobre él, el resultado es el siguiente:

-----------------------------------

Pareto UC Acumulativo =
Dónde Acumulativo = Si(
min(Hoja99[Propietario del embotellador]) <= CALCULAR(Máximo(Hoja99[Propietario del embotellador]), todo(Hoja99)),
CALCULAR( suma(Hoja99[Volumen]),
filtro(todo(Hoja99[Propietario del embotellador]),
Hoja99[Propietario del embotellador] <= Máximo((Hoja99[Propietario del embotellador])) )
)
)
Dónde CurrentUC = CALCULAR(suma( (Hoja99[Volumen]) ))
Dónde SumAll = CALCULAR( suma(Hoja99[Volumen]), todo(Hoja99) )
Dónde Resultado = dividir(Acumulativo,SumAll)
Devolución Resultado
--------------------------------------------------
UC de Pareto =
Dónde CurrentUC = CALCULAR(suma( (Hoja99[Volumen]) ))
Dónde SumAll = CALCULAR( suma(Hoja99[Volumen]), todo(Hoja99) )
Dónde Resultado = DIVIDIR(CurrentUC, SumAll )
Devolución Resultado
MahyarTF_0-1660528295078.png
Syndicate_Admin
Administrator
Administrator

Hola

Comparte el enlace desde donde puedo descargar tu archivo PBI.

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.