Ranking the table results

I have a data table as below:
image
I need to rank the customers based on count of transactions. How to do this.

As I understand it, you need to use bucket_sort aggregation, something like this:

{ "rank": {
      "bucket_sort": {
        { "sort": [
          {
            { "transactions": {
              { "order": { "desc"
            }
          }
        ],
        }, "size": 100
      }
    }
  }

But here about kibana, I haven’t really figured out the visualization.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.