Hola, estoy tratando de hacer un reporte en PDF, se trata de un estado de cuenta tipo banco. Pero estoy atorado con el saldo de cada dรญa, es decir, lo que quiero es:
Dia 1, Saldo Inicial + Ingresos - Gastos = Saldo Final Dia 1
Dia 2, Saldo Final Dia 1 + Ingresos - Gastos = Saldo Final Dia 2
Dia 3, Saldo Final Dia 2 + Ingresos - Gastos = Saldo Final Dia 3
Y asรญ sucesivamente.
El problema es que no se como โllamarโ el dato del Saldo Final Dia X, ya que se vuelve una formula circular para Appsheet. Mi tabla de datos origen del PDF contiene columnas reales y virtuales para generar toda la informaciรณn, la columna de Saldo Final la hice virtual pero la formula no se como desarrollarla. Alguna sugerencia?
Please provide info about how your data Table and Columns are set up. Screenshots are best.
And review this excellent post:
As well as here:
Hola Marc, gracias por tu apoyo.
Asรญ es como tengo configurada mi tabla (Ventas):
Esta es la formula que tengo para mi columna โSaldoEfeโ, que es el Saldo Final Diario.
SUM(SELECT(Gastos[Importe], AND([FechaPago] = [_THISROW].[Fecha], [PagarDesde] = โEfectivoโ)))
Pero no se como obtener el SaldoEfe de la fila del dรญa anterior.
La respuesta se encuentra en este post:
Estรกs cerca, sรณlo รฉchale un vistazo a la info detallada allรญ
Mark, de acuerdo a lo que revise del post, solo veo dos posibles opciones, una es agregar a mi formula lo siguiente:
+
LOOKUP([_THISROW].[Fecha] - 1, โVentasโ, โFechaโ, โSaldo_Efeโ)
La cual me da este error:
Y la otra es usando [_THISROW_BEFORE] pero la cuestiรณn es que necesito el valor no de (_THISROW - 1) NO el valor de inicial de _THISROW, por favor dame una pista un poco mas clara.
How do I get a column value from the last row of the spreadsheet? LOOKUP( MAX(My Table[_ROWNUMBER]), "My Table", "_ROWNUMBER", "Wanted Column" ) Replace My Table with the name of the table from which you want the column value; and Wanted Column with the name of the column whose value you want. See also: MAX()
Thanks Oscar, but I am not looking for the value from the last row, I am looking for the value from the previous row to [_ThisRow] from same colum. For instance, in Google Sheet would be:
Or, another option could be:
Use the rownumber you are on and substract 1 instead of checking for the max
Yes I tried with that too but, Appsheet send an error message, because of [Value_Colum_Wanted] is same, even though is diferent row. I dont know why. What can I do?
User | Count |
---|---|
43 | |
30 | |
24 | |
23 | |
13 |