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.
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.
Gracias.
Solved! Go to Solution.
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] )
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?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
78 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |