# Display data in 2nd index based dashboard based on 1st index value

**URL:** <https://discuss.elastic.co/t/display-data-in-2nd-index-based-dashboard-based-on-1st-index-value/335525>\
**Category:** Kibana\
**Created:** [June 8, 2023, 10:52am UTC](https://discuss.elastic.co/t/display-data-in-2nd-index-based-dashboard-based-on-1st-index-value/335525 "2023-06-08T10:52:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RahulWagh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahulwagh/32/107334_2.png) [@RahulWagh](https://discuss.elastic.co/u/RahulWagh)\
**Post date:** [June 8, 2023, 10:52am UTC](https://discuss.elastic.co/t/display-data-in-2nd-index-based-dashboard-based-on-1st-index-value/335525/1 "2023-06-08T10:52:52Z")

</div>

Hi,  
I have first index based on which filter control is created. It contains 1st field year-month and 2nd field contains date based on year-month selection.  
I have created 2nd index that contains completely different data but also contains year-month & date field. Based on this 2nd index I have created DataTable.  
Now I want to populate DataTable based on Month-Year & Date selection from the filter.  
Is it possible?

---

<div class="post-metadata">

**Author:** ![Priscilla\_Parodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priscilla_parodi/32/43047_2.png) [@Priscilla\_Parodi](https://discuss.elastic.co/u/Priscilla_Parodi)\
**Post date:** [June 8, 2023, 8:29pm UTC](https://discuss.elastic.co/t/display-data-in-2nd-index-based-dashboard-based-on-1st-index-value/335525/2 "2023-06-08T20:29:56Z")

</div>

Hello @RahulWagh,

If I understand correctly, you want to create a Data Table visualization that considers data from two indices. You can do this by creating a data view pointing to your two indices: `index1, index2`.

Comma-separated.

 ![Screen Shot 2023-06-08 at 4.16.27 PM](https://us1.discourse-cdn.com/elastic/original/3X/3/6/36372e775185e876f557ea00bee1ac9d649cb5bf.jpeg)

And then create a Data Table visualization using this data view:

 ![Screen Shot 2023-06-08 at 4.18.45 PM](https://us1.discourse-cdn.com/elastic/original/3X/d/b/dbf6fe78f3ca277d3579141010793fd610f2d39f.png)

Hope it helps!

---

<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:** [July 6, 2023, 8:30pm UTC](https://discuss.elastic.co/t/display-data-in-2nd-index-based-dashboard-based-on-1st-index-value/335525/3 "2023-07-06T20:30:28Z")

</div>

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