I have a dataset with sell reports. In this report I have this values:
“Available cash from yesterday” (Virtual column)
“Sells in cash”
“Pays in cash”
“Available in cash” (Virtual column)
In “Available cash from yesterday” I’m trying to get the value “Available in cash” from the last report but I keep geting this error:
“Unable to fetch app definition. Error: Timed out waiting for a resource. The reason is usually a very large/slow table or a cross-table cycle in AppSheet formula”
Right now tha dataset has few rows so I assume is a cross-table cycle error but I don’t have any idea of how to solve it. Please help.
I need them both to be virtual columns because I have another table called “Pays” so, when someone register a pay (sometimes from a previous day), the virtual column [Pays in cash] updates and this must update the [Available in cash] in that report, so this changes the [The available cash from yesterday] in the report from the next day, and so on in each report.
SUM(SELECT(Pagos[Total],AND([Fecha de pago]=[_THISROW].[Fecha de reporte],[Metodo de pago]="Efectivo")))+SUM(SELECT(Nomina[Nt + SE],AND([Fecha de pago de nomina]=[_THISROW].[Fecha de reporte],[Metodo de pago]="Efectivo")))
Basically “Pays in cash” but for a view in the report.
SELECT(Pagos[Etiqueta de pago],
AND([Sucursal]=[_THISROW].[Sucursal],
[Fecha de pago]=[_THISROW].[Fecha de reporte]),
TRUE)
“Month o the report” Organization purposes only.
“Payroll”
“Available in cash”
[Disponible en efectivo del día anterior]+[Total de ingresos en efectivo]-[Pagos en efectivo registrados]
“Available in cash from yesterday” right now without formula to avoid app crash.
“Monst recent report”
REF_ROWS("Reporte diario de caja", "Reporte más reciente")
Hope this helps to clarify the case. I appreciate the help.
Primero, haz todo lo posible por evitar el uso de columnas virtuales.
Mientras más columnas peor… y sobre todo si usas SELECT() y sus variantes! (FILTER, MAXROW, MINROW, ETC)
Te sugiero indicarnos todas las columnas que tienes y las relaciones entre sus tablas sin indicar las soluciones que tú planteas para evitar el ruido y proponerte una solución limpia
I will try to present the problem in a simple way to try to evade the noise of how I try to solve it.
I have 2 tables, “Sells report” and “Pays” with the following structure.
“Sells report”
[Report ID]
[Date]
[Available cash from yesterday] Virtual column
[Pays in cash] Virtual column
[Sells in cash]
[Available Cash]
“Pays”
[Pay ID]
[Date]
[Concept]
[Amount]
[Pay method]
This app is for a sells report in a restaurant. The idea is that the person in charge registers the sells report. The sells report must tell me how much cash is available in the restaurant. The cash available depends on how much cash sells the restaurant had and what we pay in cash.
Sometimes, because of the team structure and process, we register the pays days later, this affects the virtual column [Pays in cash] from the table “Sells report” and therefore the virtual column [Available in cash].
Parallel to the virtual columns I have normal columns. The idea behing of having this parallel is to keep track of the theoric amount of cash and the amount of phisical cash. Something like it is used with inventories.