How do I get a column value from the last row of this thing only?
LOOKUP(
MAX(
SELECT(
My Table[_ROWNUMBER],
([_THISROW].[Thing] = [Thing])
)
),
"My Table",
"_ROWNUMBER",
"Wanted Column"
)
Replace My Table with the name of the table from which you want the column value; Thing with the name of the column containing a value that identifies the thing you want (e.g., Order ID); and Wanted Column with the name of the column whose value you want.
FILTER(
"My Table",
([_THISROW].[Thing] = [Thing])
)
Replace My Table with the name of the table whose row you want; and Thing with the name of the column containing a value that identifies the thing you want (e.g., Order ID).
How do I get a list of column values from rows of this thing only?
To include duplicate values in the result:
SELECT(
My Table[Wanted Column],
([_THISROW].[Thing] = [Thing])
)
Replace My Table with the name of the table whose row you want; Wanted Column with the name of the column whose value you want; and Thing with the name of the column containing a value that identifies the thing you want (e.g., Order ID).
To omit duplicates so that each value occurs only once in the result:
SELECT(
My Table[Wanted Column],
([_THISROW].[Thing] = [Thing]),
TRUE
)
To limit the rows included in the COUNT() range (e.g., as with COUNTIF(A3:A7, ...)), include the limit criteria in the FILTER() sub-expression, similar to this:
To count across multiple columns (e.g., as with COUNTIF(A:C, ...)), you may add the results of an additional FILTER() sub-expression for each additional column:
MAXROW(
"My Table",
"_ROWNUMBER",
([_THISROW].[Thing] = [Thing])
)
Replace My Table with the name of the table whose row you want; and Thing with the name of the column containing a value that identifies the thing you want (e.g., Order ID).
ISBLANK(
FILTER(
"My Table",
([_ROWNUMBER] = [_THISROW].[_ROWNUMBER])
)
)
Does this row already exist?
IN([_ROWNUMBER], My Table[_ROWNUMBER])
or:
ISNOTBLANK(
FILTER(
"My Table",
([_ROWNUMBER] = [_THISROW].[_ROWNUMBER])
)
)
In the above, replace My Table with the name of the table about which you’re inquiring.
When modifying rows, such as in forms or with actions, expressions act on a temporary copy of the row. Only after the form is saved or action completed is the new row data saved to the table. Until saved, the data in the table remains as it was when the form was opened or the action started. Expressions that explicitly reference tables, such as table-column references and SELECT() and its derivatives, can be used to access the table directly, bypassing any pending changes in the temporary copy of the row.
The simplest way is to dereference [_THISROW_BEFORE]:
[_THISROW_BEFORE].[Wanted Column]
Replace Wanted Column with the name of the column whose value you want.
LOOKUP() could also be used:
LOOKUP(
[_THISROW].[_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.
When modifying rows, such as in forms or with actions, expressions act on a temporary copy of the row. Only after the form is saved or action completed is the new row data saved to the table. Until saved, the data in the table remains as it was when the form was opened or the action started. Expressions that explicitly reference tables, such as table-column references and SELECT() and its derivatives, can be used to access the table directly, bypassing any pending changes in the temporary copy of the row.