List that sums a quantity

Hello to the entire Community.

This is the question:
I have a list of items ([Related LINALBs]) that, among other columns, has [REF] and [AMOUNT].
I want to print a PDF but only with the elements ([REF]) that add up to a certain AMOUNT.
Practical case:
The sum of [AMOUNT] of [Related LINALBs] is โ‚ฌ5,000 but I want only elements to appear in the PDF until they total โ‚ฌ1,000 (approximately).

Thank!!!

Solved Solved
0 1 137
1 ACCEPTED SOLUTION

SOLUCIONADO !!!!

Crear una VC [SUMA_LINEAS]:

SUM(SELECT(LINALB[TOTAL], AND([IDALB] = [_THISROW].[IDALB], [_THISROW].[_ROWNUMBER] <= [_ROWNUMBER])))

En el PDF: 

<<FILTER(LINALB, AND([IDALB]=[_THISROW-1].[IDALB], [SUMA_LINEAS]<=[_THISROW-1].[DEPOSITO]))>>

La columna [DEPOSITO] es el IMPORTE.

El resultado se aproxima a la IMPORTE. Siempre serรก algo mayor.

 

View solution in original post

1 REPLY 1

SOLUCIONADO !!!!

Crear una VC [SUMA_LINEAS]:

SUM(SELECT(LINALB[TOTAL], AND([IDALB] = [_THISROW].[IDALB], [_THISROW].[_ROWNUMBER] <= [_ROWNUMBER])))

En el PDF: 

<<FILTER(LINALB, AND([IDALB]=[_THISROW-1].[IDALB], [SUMA_LINEAS]<=[_THISROW-1].[DEPOSITO]))>>

La columna [DEPOSITO] es el IMPORTE.

El resultado se aproxima a la IMPORTE. Siempre serรก algo mayor.

 

Top Labels in this Space