My data structure is as follows
username,department,salary bob,finance,2000 joe,HR,2200 chan,finance,3000 bobby,finance,2500 don,HR,1800
I was looking for a Splunk's equivalent command of
... | stats values(salary) by department
So basically the output to be
values of the salary aggregated by
How to do above aggregation in Watcher/DSL?