# Session Count per number of Transactions

**URL:** https://discuss.elastic.co/t/session-count-per-number-of-transactions/255959
**Category:** Kibana
**Created:** [November 19, 2020, 9:59am UTC](https://discuss.elastic.co/t/session-count-per-number-of-transactions/255959 "2020-11-19T09:59:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Max\_Handle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/max_handle/32/48133_2.png) [@Max\_Handle](https://discuss.elastic.co/u/Max_Handle)
#### Post date: [November 19, 2020, 9:59am UTC](https://discuss.elastic.co/t/session-count-per-number-of-transactions/255959/1 "2020-11-19T09:59:35Z")

</div>

Hi,

I am trying to solve the following problem with little success so far concerning Barcharts:

- X-axis --\> Number of rows per Session
- Y-axis --\> Count of Sessions

So it would look something like this:

 ![Bildschirmfoto 2020-11-19 um 10.47.08](https://us1.discourse-cdn.com/elastic/original/3X/8/1/813face3ad817e593790d9f8908cc0f584763da4.png)

There are 4 Sessions that have only one transaction (or one row in discover), 3 Sessions have 2 transaction etc.

Is there some way to achieve this? It does not necessarily need to be a bar chart. Any help would be very much appreciated!

---

<div class="post-metadata">

### Author: ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)
#### Post date: [November 19, 2020, 4:14pm UTC](https://discuss.elastic.co/t/session-count-per-number-of-transactions/255959/2 "2020-11-19T16:14:14Z")

</div>

You need to pre-aggregate your data into a form that you can analyze. Most users who do session-based analysis use the Elasticsearch transformations feature: [https://www.elastic.co/guide/en/elasticsearch/reference/current/transforms.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/transforms.html)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 17, 2020, 4:14pm UTC](https://discuss.elastic.co/t/session-count-per-number-of-transactions/255959/3 "2020-12-17T16:14:25Z")

</div>

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