# TVSB - Top N Filtering

**URL:** https://discuss.elastic.co/t/tvsb-top-n-filtering/350089
**Category:** Kibana
**Tags:** dashboard
**Created:** [December 28, 2023, 4:26pm UTC](https://discuss.elastic.co/t/tvsb-top-n-filtering/350089 "2023-12-28T16:26:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)
#### Post date: [December 28, 2023, 4:26pm UTC](https://discuss.elastic.co/t/tvsb-top-n-filtering/350089/1 "2023-12-28T16:26:23Z")

</div>

Hello,

I created this TVSB - Top N visualization, and I was wondering how I can have it be "filterable". Normally with a lens, I can click on the visualization, and it would apply the filter based on the selection. But with Top N, it doesn't.

Here's my configuration, just a simple count (I know this can be converted to lens, but I prefer the look of this visualization)  
I want to be able to click on the bar or field value (like PoweredOn) and apply that filter to the dashboard.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/e/8e9f760f556ef6eb7188dccc25cebbd218777a81.png)

Thanks,  
Erik

---

<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: [December 28, 2023, 4:36pm UTC](https://discuss.elastic.co/t/tvsb-top-n-filtering/350089/2 "2023-12-28T16:36:07Z")

</div>

Hi @erikg

There are 2 places to filter

First if you click on that options right next to metrics... that will filter for that metric

 ![Screenshot 2023-12-28 at 8.33.35 AM](https://us1.discourse-cdn.com/elastic/original/3X/e/0/e05cd9b05926ae6b940501dd3f79948976cfe0a3.png)

2nd if you want the entire panel filter Click on Panel Options

 ![Screenshot 2023-12-28 at 8.33.43 AM](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8cb63df85759f59ed0d19cfad4f23bc519e052e6.png)

---

<div class="post-metadata">

### Author: ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)
#### Post date: [December 28, 2023, 5:01pm UTC](https://discuss.elastic.co/t/tvsb-top-n-filtering/350089/3 "2023-12-28T17:01:08Z")

</div>

> [@stephenb](#):
>
> l filter Click on Panel Options

Hey Stephen,

Thanks, but I might be confusing you. I believe what you are showing me is how to filter the data within the visualization.

What I am looking for is to apply a filter from the visualization to the dashboard.  
Like in lens, you can click on "PoweredOn" and it will filter the whole dashboard based on that click.  
In Top N, I can't click on "PoweredOn"

---

<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: [December 28, 2023, 5:15pm UTC](https://discuss.elastic.co/t/tvsb-top-n-filtering/350089/4 "2023-12-28T17:15:07Z")

</div>

Yes I understand now...

Interesting TSVB Top-N used to automatically do the filter when clicked on... that seems to not be available.... at this point / anymore... There has been some pretty significant under the cover changes to dashboarding... perhaps that got deprecated. TSVB is not really under active development any more.

You could create a drill down.. that will work but be a bit clunk as the whole page will reload...

I will poke around a bit....

What version are you on... I am on 8.11.3

My Lens version looks very nice and the click works automatically  
(BTW I am a long time TSVB user, but I am slowly moving more to Lens)  
This Top-N actually looks pretty nice... perhaps even nicer with the values in the bars

 ![Screenshot 2023-12-28 at 9.16.33 AM](https://us1.discourse-cdn.com/elastic/original/3X/d/e/de1bf7fbfac406a195b6bb67ebaf42fec890d050.png)

 ![Screenshot 2023-12-28 at 9.16.44 AM](https://us1.discourse-cdn.com/elastic/original/3X/f/c/fc0abc2de86b84c95a1f6ac2c4d7c191d582ef28.png)

---

<div class="post-metadata">

### Author: ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)
#### Post date: [December 28, 2023, 5:21pm UTC](https://discuss.elastic.co/t/tvsb-top-n-filtering/350089/5 "2023-12-28T17:21:46Z")

</div>

Hey Stephen, thanks for looking into it.

I am using 8.11.3 as well.  
I did prefer the TVSB but this will do, I should be moving towards Lens anyways.

Thanks,  
Erik

---

<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: [January 25, 2024, 5:22pm UTC](https://discuss.elastic.co/t/tvsb-top-n-filtering/350089/6 "2024-01-25T17:22:10Z")

</div>

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