6.12 Filter by maximum or minimum value within a group (find out one for each group)
We have an Excel table for the daily sales of products:
The code below is to find out the product with the largest daily sales and its sales:
=spl("=E(?1).group(OrderDate).(~.maxp(Sales))",A1:C2401)
https://c.scudata.com/article/1651916536524
https://c.scudata.com/article/1654391166534
https://c.scudata.com/article/1654479951793
SPL Official Website 👉 https://www.esproc.com
SPL Feedback and Help 👉 https://www.reddit.com/r/esProc_Desktop/
SPL Learning Material 👉 https://c.esproc.com
Discord 👉 https://discord.gg/2bkGwqTj
Youtube 👉 https://www.youtube.com/@esProcDesktop
Linkedin Group 👉 https://www.linkedin.com/groups/14419406/