Forum Discussion
rod_puente
2 years agoHelper I
Help! Accumulated amount
Community
Pls your help, I need a funtion with CALCULATE, that allows me to accumulate by product code.
This is an example, dates can be repeated: ...the formula should be like the yellow column.
Regards
Rodrigo P.
you can create an index column in PQ
then use DAX to create a column
Column = sumx(FILTER('Table','Table'[Codigo Producto]=EARLIER('Table'[Codigo Producto])&&'Table'[Index]<=EARLIER('Table'[Index])),'Table'[Cantidad])pls see the attachment below
3 Replies
- ryan_mayuSuper User
you can create an index column in PQ
then use DAX to create a column
Column = sumx(FILTER('Table','Table'[Codigo Producto]=EARLIER('Table'[Codigo Producto])&&'Table'[Index]<=EARLIER('Table'[Index])),'Table'[Cantidad])pls see the attachment below - rod_puenteHelper I
Excelent!
Tkns tm.
Regards
Rodrigo P
- ryan_mayuSuper User
you are welcome