Hola comunidad, tengo una tabla que se llama CAJA y un estado (Abierto o Cerrado)
Quiero que si la penúltima fila contiene en estado Abierto, no permita abrir otra caja hasta cerrar esa, alguien puede ayudarme
Hola comunidad, tengo una tabla que se llama CAJA y un estado (Abierto o Cerrado)
Quiero que si la penúltima fila contiene en estado Abierto, no permita abrir otra caja hasta cerrar esa, alguien puede ayudarme
MAXROW() te puede servir
Hi @Diego_Leon
In addition to what @Alejandra_Petro just said, here is a very useful thread:
[FAQ: FILTER(), LOOKUP(), MAXROW(), MINROW(), REF_ROWS(), and SELECT()](https://community.appsheet.com/t/faq-filter-lookup-maxrow-minrow-ref-rows-and-select/24216) Tips & Tricks ?
Core concepts & functions Expressions: The Essentials FILTER() List Expressions and Aggregates LOOKUP() MAXROW() MINROW() REF_ROWS() SELECT() What is a Key? Adding & updating rows Is this a new row?/Does this row already exist? What is the previous value of this column? Excel alternatives How do I do COUNTIF() or COUNTIFS()? How do I do SUMIF() or SUMIFS()? How do I do VLOOKUP()? Last row of the spreadsheet How do I get the last row of the spreadsheet? How do I get a column value from…
Seguro ya los has resuelto, igual te paso cómo lo resolví:
index(
Select(detalle_ventas[STOCK_SALDO],[_THISROW].[CODIGO MERCADERIA]=[CODIGO MERCADERIA]),
count(filter(detalle_ventas,[_THISROW].[CODIGO MERCADERIA]=[CODIGO MERCADERIA]))-1
)