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
Anonymous
Not applicable

Acumulado en una mesa

Tengo un problema tratando de obtener acumulado en Power bi.

Tengo compañía, cuenta y mes, y necesito obtener de acumulado por cada empresa, cuenta y mes.

Por favor, vea el ejemplo, el resultado es la columna Acumulado, ¿Cómo hacerlo?

EmpresaCuentaMesCantidadAcumulado
1A2020-01-0122
1A2020-02-013436
1A2020-03-01541
1B2020-01-0144
1B2020-02-017882
1B2020-03-01486
1C2020-01-015656
1C2020-03-0189145
1D2020-01-015757
1E2020-01-015858
1E2020-02-0186144
1F2020-01-016969
1F2020-02-0133102
2X2020-01-0166
2X2020-02-01123129
2X2020-03-01123252
2Y2020-01-018260
2Z2020-01-015656

saludos

1 ACCEPTED SOLUTION
camargos88
Community Champion
Community Champion

@rcardenas1966 ,

Puede utilizar este código para una columna calculada:

Column = CALCULATE(SUM('Table'[Amount]), FILTER(ALL('Table'), 'Table'[Company] = EARLIER('Table'[Company]) && 'Table'[Account] = EARLIER('Table'[Account]) && 'Table'[Month] <= EARLIER('Table'[Month])))


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

Proud to be a Super User!



View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@rcardenas1966 , Crear una nueva medida como

calculate(sum(Table[Amount]), filter(allselected(Table), Table[Company] á max(Table[Company]) && Table[Account] á max(Table[Account]) && Table[Month] <-max(Table[Month])))

O Nueva columna como

sumx(filter(Table, [Company] á earlier([Company]) && [Account] ? earlier([Account]) && [Month] <-earlier([Month])),[Amount])

Anonymous
Not applicable

 

Sorry!, I do not undertand some symbols.

 

calculate(sum(Table[Amount]), filter(allselected(Table), Table[Company] á max(Table[Company]) && Table[Account] á max(Table[Account]) && Table[Month] <-max(Table[Month])))

 

O Nueva columna como

sumx(filter(Table, [Company] á earlier([Company]) && [Account] ? earlier([Account]) && [Month] <-earlier([Month])),[Amount])

Anonymous
Not applicable

Thanks a lot, now is working, Ireview the other Solutions, Thanks

camargos88
Community Champion
Community Champion

@rcardenas1966 ,

Puede utilizar este código para una columna calculada:

Column = CALCULATE(SUM('Table'[Amount]), FILTER(ALL('Table'), 'Table'[Company] = EARLIER('Table'[Company]) && 'Table'[Account] = EARLIER('Table'[Account]) && '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.