# How to create Pivot table in Kibana 7.16.2

**URL:** <https://discuss.elastic.co/t/how-to-create-pivot-table-in-kibana-7-16-2/301937>\
**Category:** Kibana\
**Created:** [April 8, 2022, 8:42am UTC](https://discuss.elastic.co/t/how-to-create-pivot-table-in-kibana-7-16-2/301937 "2022-04-08T08:42:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ely\_96](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ely_96/32/103816_2.png) [@Ely\_96](https://discuss.elastic.co/u/Ely_96)\
**Post date:** [April 8, 2022, 8:42am UTC](https://discuss.elastic.co/t/how-to-create-pivot-table-in-kibana-7-16-2/301937/1 "2022-04-08T08:42:22Z")

</div>

Hi, I need an help. I have a json like:

```auto
[
{"name": "Albert", "year": 1980, "class": "B"},
{"name": "John", "year": 1990, "class": "C"},
{"name": "Lerry", "year": 1990, "class": "C"},
{"name": "Joe", "year": 1980, "class": "A"},
{"name": "Kevin", "year": 1990, "class": "D"},
{"name": "Dude", "year": 1980, "class": "A"},
]

```

The years and class values could changes.

I would like to display them in a pivot table with 3 columns: "Class", "Year(1)", "Year(2)"...

Do you know how I could create a pivot table? I try with "enhanced table" plugin but this is not available for Kibana 7.16.2

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 8, 2022, 2:17pm UTC](https://discuss.elastic.co/t/how-to-create-pivot-table-in-kibana-7-16-2/301937/2 "2022-04-08T14:17:06Z")

</div>

You should move this to the kibana forum.

---

<div class="post-metadata">

**Author:** ![Ely\_96](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ely_96/32/103816_2.png) [@Ely\_96](https://discuss.elastic.co/u/Ely_96)\
**Post date:** [April 8, 2022, 3:51pm UTC](https://discuss.elastic.co/t/how-to-create-pivot-table-in-kibana-7-16-2/301937/3 "2022-04-08T15:51:06Z")

</div>

It's in Elastic Stack \> Kibana. I'm in wrong?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 8, 2022, 4:15pm UTC](https://discuss.elastic.co/t/how-to-create-pivot-table-in-kibana-7-16-2/301937/4 "2022-04-08T16:15:55Z")

</div>

At the time I posted it was in the logstash forum. I would never have seen it if it were in the kibana forum as it is now.

---

<div class="post-metadata">

**Author:** ![Ely\_96](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ely_96/32/103816_2.png) [@Ely\_96](https://discuss.elastic.co/u/Ely_96)\
**Post date:** [April 9, 2022, 3:28pm UTC](https://discuss.elastic.co/t/how-to-create-pivot-table-in-kibana-7-16-2/301937/5 "2022-04-09T15:28:53Z")

</div>

Well 🙂 thanks in any case

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 9, 2022, 8:44pm UTC](https://discuss.elastic.co/t/how-to-create-pivot-table-in-kibana-7-16-2/301937/6 "2022-04-09T20:44:11Z")

</div>

Have you tried a table in  
Lens?

I'm still not exactly sure what your table looks like from your example.

---

<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:** [May 7, 2022, 8:45pm UTC](https://discuss.elastic.co/t/how-to-create-pivot-table-in-kibana-7-16-2/301937/7 "2022-05-07T20:45:04Z")

</div>

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