# Dashboard streaming analytics filtering

**URL:** <https://forum.kx.com/t/dashboard-streaming-analytics-filtering/14090>\
**Category:** Academy Support\
**Tags:** imported\
**Created:** [November 1, 2024, 5:25am UTC](https://forum.kx.com/t/dashboard-streaming-analytics-filtering/14090 "2024-11-01T05:25:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![trinity](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@trinity](https://forum.kx.com/u/trinity)\
**Post date:** [November 1, 2024, 5:25am UTC](https://forum.kx.com/t/dashboard-streaming-analytics-filtering/14090/1 "2024-11-01T05:25:52Z")

</div>

[https://learninghub.kx.com/forums/topic/dashboard-streaming-analytics-filtering](https://learninghub.kx.com/forums/topic/dashboard-streaming-analytics-filtering)

Is it possible to subscribe to a table with filtering through KX Dashboards streaming data source? .u.sub can allow for filtering, and I would like to filter the subscription on KX Dashboards side too and I'm wondering what I need to change. I.e. do I need to change .u.snap, and where can I put in the filter criteria as a parameter?

---

<div class="post-metadata">

**Author:** ![khennessy](https://avatars.discourse-cdn.com/v4/letter/k/da6949/32.png) [@khennessy](https://forum.kx.com/u/khennessy)\
**Post date:** [November 8, 2024, 2:49pm UTC](https://forum.kx.com/t/dashboard-streaming-analytics-filtering/14090/2 "2024-11-08T14:49:37Z")

</div>

Hi,

Hopefully I can help answer your question below here:

1. Overview of Streaming

This is a very useful video about how Streaming queries are set up : [KX Dashboards | Streaming Data - YouTube](https://www.youtube.com/watch?v=aoAMj0Zkbdg&t=75s)

2. Demo Streaming with Filtering

If you have KX Dashboards installed (https://code.kx.com/dashboards/gettingstarted/)

Then navigate to the "Demo Stream" Dashboard, there is a build in example where we pass in a parameter to the streaming model that filters the returning data set .

Therefore:

1. On load - we subscribe to the using the default filter

2. If we change the viewstate, we then unsubscribe and the re-subscribe using the new filter

---

<div class="post-metadata">

**Author:** ![trinity](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@trinity](https://forum.kx.com/u/trinity)\
**Post date:** [December 10, 2024, 12:29am UTC](https://forum.kx.com/t/dashboard-streaming-analytics-filtering/14090/3 "2024-12-10T00:29:47Z")

</div>

I'm not sure if I'm on a different version of dashboards or have done something differently, but I do not get the .sub graph looking subscription option to subscribe to, instead it looks like a table. When I add a symbol for example as the parameter x, it doesn't work as expected - it instead starts returning empty schema table for a different subscribable table. I would expect this to start a subscription to just that sym.

---

<div class="post-metadata">

**Author:** ![trinity](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@trinity](https://forum.kx.com/u/trinity)\
**Post date:** [December 10, 2024, 12:32am UTC](https://forum.kx.com/t/dashboard-streaming-analytics-filtering/14090/4 "2024-12-10T00:32:49Z")

</div>

As for the stream demo, the only instance of using a parameter that I see is when builder is used, and i would rather avoid using builder if possible.

---

<div class="post-metadata">

**Author:** ![trinity](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@trinity](https://forum.kx.com/u/trinity)\
**Post date:** [December 10, 2024, 12:39am UTC](https://forum.kx.com/t/dashboard-streaming-analytics-filtering/14090/5 "2024-12-10T00:39:54Z")

</div>

I think there must be something i need to change in my .u.snap code perhaps? I can subscribe to the table for just a specific symbol, however the schema seems to be corrupted in the process

---

<div class="post-metadata">

**Author:** ![trinity](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@trinity](https://forum.kx.com/u/trinity)\
**Post date:** [December 18, 2024, 10:16pm UTC](https://forum.kx.com/t/dashboard-streaming-analytics-filtering/14090/6 "2024-12-18T22:16:48Z")

</div>

@khennessy&nbsp;Just bumping this to your attention
