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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
roxanahd1993
New Member

Acumulado

Buenas tardes necesito apoyo para cálcular el acumulado de una medida, ya hice el cálcula y arrojo los datos correctos pero al hacer un nuevo acumulado con otra medida los valores que arroja no son los correctos

La primera columna es una medida y su acumulado pueden observar que es correcto sin embargo en la tercera columna hay una nueva mededida pero su acumulado que esta a un costado no es correcto

roxanahd1993_0-1724866598987.png

 

Formula utilizada en el primer acumulado

MCI Plant Acum = CALCULATE( [MCI Plant],
    FILTER(
        CALCULATETABLE(
            SUMMARIZE('FECHA', 'Fecha'[Mes#], 'FECHA'[Mes]),
            ALLSELECTED('FECHA')
        ),
        ISONORAFTER(
            'Fecha'[Mes#], MAX('Fecha'[Mes#]), DESC,
            'FECHA'[Mes], MAX('FECHA'[Mes]), DESC
        )
    )
)
 
Formula del segundo acumulado
MEI Plant Acum = CALCULATE( [MEI Plant1],
    FILTER(
        CALCULATETABLE(
            SUMMARIZE('Fecha','Fecha'[Mes#], 'Fecha'[Mes]),
            ALLSELECTED('Fecha')
        ),
        ISONORAFTER(
            'Fecha'[Mes#], MAX('Fecha'[Mes#]), DESC,
            'Fecha'[Mes], MAX('Fecha'[Mes]), DESC
        )
    )
)
 
Sabran proque en una muestra el reseultado correcto y en el otro no? o que formula deberia utilizar para que sea correcta.
 
Quedo pendiente, gracias

 

3 REPLIES 3
roxanahd1993
New Member

Buen día

 

Inyente utilizar la formula mas no me permite, esto es posible que pase porque es una medida y no una tabla?

 

roxanahd1993_0-1724940663538.png

Quedo pendiente ya que llevo varios días intentandolo 😞

 

Prueba.pbix

Anonymous
Not applicable

Hi @roxanahd1993 ,
I'm sorry I can't open your pbix file due to environmental constraints, the public forum can't open your private files, you can collate some example data and re-post it to the public cloud, this will better help you solve the problem, looking forward to your reply!

Best regards,
Community Support Team_ Tom Shen

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @roxanahd1993 ,
We can try to simplify your code a little bit, because due to the application of calculatetable and isonorafter it is possible to cause errors in the contextual termination or accumulation logic.

 

MEI Plant Acum(Copy) = 
CALCULATE(
   SUM('Fecha'[MEI Plant1]),
   FILTER(
       ALLSELECTED('Fecha'),
    'Fecha'[Mes#] <= MAX('Fecha'[Mes#])
   )
)

 

vxingshenmsft_0-1724895944264.png
It is also possible that my data is too simple to fulfil your needs, you can upload some example data or PBIX files that might be helpful in solving your problem!

I hope that my solution will solve your problem and I will be extremely proud if it does!

Best regards,
Community Support Team_ Tom Shen

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.