Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hola, vengo teniendo un problema les comento.
Tengo esta tabla que es un forecast, entonces yo quisiera tener una medida que me sume el acumulado mes a mes de la columna cantidad pero que detenga la suma en el mes anterior cerrado (es decir si hoy es 5 de mayo, me sume hasta el 30 de abril y asi sea 15 de mayo me siga sumando hasta el 30 de abril y recien cuando sea junio, me sume hasta el 31 de mayo), no se si se a posible.
Gracias
Basándome en su descripción, he creado una muestra simple:
Por favor, intente:
Cumulative sum =
var _a = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),[Date]<=EOMONTH(MAX('Table'[Date]),0)))
var _b = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),[Date]<=EOMONTH(MAX('Table'[Date]),-1)))
return IF(MONTH(MAX('Table'[Date]))=MONTH(TODAY()),_b,_a)
Resultado final:
Saludos
Jianbo Li
Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.