Hi,
I am trying to create an expression that I can use in a columns initial value.
I want it to return the latest row that matches column Equipment.
I have this:
ANY(
SELECT(Pre Start[Equipment],
([_ROWNUMBER] = MAX(SELECT(Pre Start[_ROWNUMBER],
([_THISROW].[Equipment] = [Equipment]))))))
Which is interpreted by appsheet as:
One randomly chosen value from this list (
โฆThe list of values of column โEquipmentโ
โฆfrom rows of table โPRE STARTโ
โฆwhere this condition is true: ((The value of column โ_RowNumberโ) is equal to (MAX(
โฆThe list of values of column โ_RowNumberโ
โฆfrom rows of table โPRE STARTโ
โฆwhere this condition is true: ((The value of โEquipmentโ from the row referenced by โTimestampโ) is equal to (The value of column โEquipmentโ))))))
I tried to do this:
ANY(
SELECT(Pre Start[Equipment],
AND(([_ROWNUMBER] = MAX(SELECT(Pre Start[_ROWNUMBER]))),
([_THISROW].[Equipment] = [Equipment]))))
But the select function becomes invalid
Any ideas on how I could select the latest row where equipment matches equipment?
Solved! Go to Solution.
I think you want this:
User | Count |
---|---|
41 | |
31 | |
31 | |
16 | |
14 |