Mode() returns the most commonly-occurring value, the mode value, of the aggregated data in the expression, as defined by a group by clause. The Mode() function can return numeric values as well as text values.
Return data type: dual
||The expression or field containing the data to be measured.|
If more than one value is equally commonly occurring,
Examples and results:
Add the example script to your app and run it. Then add, at least, the fields listed in the results column to a sheet in our app to see the result.
To get the same look as in the result column below, in the properties panel, under Sorting, switch from Auto to Custom, then deselect numerical and alphabetical sorting.
LOAD * inline [
] (delimiter is '|');
LOAD Customer, Mode(Product) as MyMostOftenSoldProduct Resident Temp Group By Customer;