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
djviko88
Regular Visitor

Columna con Valores Acumulados por MES

Hola, buen dia, 

 

por favor me pueden ayudar ya que necesito generar una columna que permita realizar la suma de los valores por meses, es decir tengo los meses del Año y cada mes con 1 valor, en la nueva columna necesito :

Mes      Valor     Valor Acumulado

Enero   10000    10000

Febrero  5000    15000

Marzo  20000    35000

....

...

Diciembre N               N

 

como puedo realizar ese calculo.

rowes.PNG

 

 

Gracias.

 

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@djviko88,

 

You may refer to the following DAX that adds a calculated column.

Column =
SUMX (
    FILTER (
        Table1,
        Table1[Year] = EARLIER ( Table1[Year] )
            && Table1[Month] <= EARLIER ( Table1[Month] )
    ),
    Table1[Value]
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

24 REPLIES 24

jajaja no me lo puedo creer...! he revisado docenas de comandos DAX y no había visto este. Funciona perfecto!

Muchas gracias. 

Lo que pasa es que esa expresion acumula todas las fechas sin importar anio, y si pruebas funciones DAX que tomen la informacion del anio. Probaste con TOTALYTD?

@Jmayorgav 

 

Empezaré a revisar el de @Oxigeno .

 

Cuando puedas publicas tu caso.

 

Saludos




Lima - Peru

Gracias @Vvelarde, es correcto lo que me indicas. Gracias nuevamente....

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.