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
kressb
Helper V
Helper V

Easy Sum basado en fechas actuales /pregunta anterior

Tengo una tabla con dos columnas - mes, un . Estoy tratando de hacer una tercera columna calculada que agrega el mes actual con las líneas por encima de él para obtener un total. ex:

MesNúmeroNumberYTD
7/1/20202323
8/1/20202144
9/1/20202266
10/1/20202288
11/1/202021109
12/1/202023132
1/1/202121153
2/1/202120173
3/1/202123196

Lo intenté:

NumerYTD - calculate(sum(Table[Number]),Filter(Table,Table[Month]<-Table[Month]))

pero eso me da 196 por cada línea.

TYIA

1 REPLY 1
camargos88
Community Champion
Community Champion

@kressb ,

Pruebe este código para una nueva columna calculada:

Número YTD á CALCULATE(SUM('Table'[Number]), FILTER('Table', 'Table'[Month] <- EARLIER('Table'[Month])))


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



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.