Hello, is there a way to use the WixDataAggregate() function with the max() option, so that all the other fields of the found rows are displayed in a table?
Example, I have a “myHouse” table and I want to aggregate the following records by “state” field and find the maximum on the “age” field:
Table: myHouse
name ; age ; state
“Claudio”;“34”,“Italy”
“Mario”;“56”,“Italy”
“Claudio”;“37”,“Italy”
“Anna”;“14”,“France”
“John”;“62”,“England”
“Mary”;“65”,“England”
The final result I would like in the table is:
“Mario”;“56”,“Italy”
“Anna”;“14”,“France”
“Mary”;“65”,“England”
Instead using wixData.aggregate (“myHouse”). group (“state”). max (“age”)…etc
the result is only:
“Italy”
“France”
“England”
and I don’t get the other information
Thank you very much
Claudio
