Hello, for simplicity, I have a Bus number column, a bus image column and a date column. I would like to retrieve for each row in virtual column, the most recent image of the bus number of this row.
But obviously the max function only uses numeric values.
Here is my formula:
max(select(carrosserie[schema],and([bus]=[_thisrow].[bus],[date_avar]=max(carrosserie[date_avar]))))
The inputs for function โMAXโ should be a list of numeric values
Solved! Go to Solution.
You can use MAXROW like below - Iโm not clear which column is your key column so Iโll just refer to it as โKeyโ and you will want to replace with the actual column:
SELECT(carrosserie[schema], [Key] = MAXROW("carrosserie", "date_avar", [bus]=[_thisrow].[bus]))
User | Count |
---|---|
37 | |
25 | |
21 | |
20 | |
16 |