Hello People,
I'm trying to group the columns Brand Name and Inspection date to get the highest date by brand. But I'm getting the error. Could anyone please review the code. It will be really great.
Input:-
| Mercedes | 14/4/2000 |
| Mercedes | 1/12/2006 |
| Mercedes | 2/12/2020 |
| BMW | 1/12/2018 |
| BMW | 25/5/2018 |
| BMW | 25/5/2019 |
| Audi | 25/5/2018 |
| Audi | 1/12/2019 |
| Audi | 1/12/2020 |
Output:-
| Mercedes | 2/12/2020 |
| BMW | 25/5/2019 |
| Audi | 1/12/2020 |
ClearCollect(myBrand,DropColumns(AddColumns(GroupBy(myBrandItems,"Vehicle_Brand","Date for Inspection"),"Brand Date",First(Sort(Brand_Details, Inspection_Date,Descending)).Inspection_Date)),"Date for Inspection")
Thanks 🙂

Report
All responses (
Answers (