I’m trying to create a table using Arcade that only shows the highest frequency read for each [Sample Date, Site ID] but while also showing the ‘variant_name’ field in the table.

I was able to create something like this but I don’t know how to integrate “Variant_name” in the arcade code below because I’m not using it for any calculations. Can you let me know how to proceed ?
It looks like it got the job done but I need to integrate “Variant_name” I just don’t know where to put it.

Code used:
var fs = FeatureSetByPortalItem(Portal('https://arcgis.com/'), '0f37132f7d4c4a1bb0f0b1b985dbae1b', 0, ['*'], false);
return GroupBy(fs, ['Sample_Date','Site_ID','Site_Name'],
[{name: 'Estimated_Frequency_Reads', expression: 'Estimated_Frequency_Reads', statistic: 'MAX' }] );
I feel like @JohannesLindner would be great with this